public static function create(
        string $body,
        string $name = '',
        ?DescriptionFactory $descriptionFactory = null,
        ?TypeContext $context = null
    ): self {
        Assert::stringNotEmpty($name);
        Assert::notNull($descriptionFactory);

        $description = $descriptionFactory && $body !== "" ? $descriptionFactory->create($body, $context) : null;

        return new static($name, $description);
    }
public static function create(
        string $body,
        string $name = '',
        ?DescriptionFactory $descriptionFactory = null,
        ?TypeContext $context = null
    ): self {
        Assert::stringNotEmpty($name);
        Assert::notNull($descriptionFactory);

        $description = $descriptionFactory && $body !== "" ? $descriptionFactory->create($body, $context) : null;

        return new static($name, $description);
    }
public static function create ( string $ body , string $ name = '' , ? DescriptionFactory $ descriptionFactory = null , ? TypeContext $ context = null ) : self { Assert :: stringNotEmpty ( $ name ) ; Assert :: notNull ( $ descriptionFactory ) ; $ description = $ descriptionFactory && $ body !== "" ? $ descriptionFactory -> create ( $ body , $ context ) : null ; return new static ( $ name , $ description ) ; }
Creates a new tag that represents any unknown tag type.


@return static
Creates a new tag that represents any unknown tag type .