Lines Matching defs:type
163 * @param int $type HTML block type
165 * @psalm-param HtmlBlock::TYPE_* $type
167 * @phpstan-param HtmlBlock::TYPE_* $type
171 * @throws InvalidArgumentException if an invalid type is given
175 public static function getHtmlBlockOpenRegex(int $type): string
177 switch ($type) {
193 throw new InvalidArgumentException('Invalid HTML block type');
200 * @param int $type HTML block type
202 * @psalm-param HtmlBlock::TYPE_* $type
204 * @phpstan-param HtmlBlock::TYPE_* $type
208 * @throws InvalidArgumentException if an invalid type is given
212 public static function getHtmlBlockCloseRegex(int $type): string
214 switch ($type) {
226 throw new InvalidArgumentException('Invalid HTML block type');