self::$types[$i], 'name' => self::$names[$i]]; } return $blocks; } static public function getNameFromType(string $type): string { for($i=0; $i < count(self::$types); $i++){ if(self::$types[$i] === $type){ return self::$names[$i]; } } return 'server side error'; } }