public function makeHtml(Enviroment $enviroment): ?Parser
    {

        if (!$enviroment->isHtml()) {
            return null;
        }

        return Parser::make()
            ->addDecorator(PaddingDecorator::make())
            ->addDecorator(LineWidthDecorator::make())
            ->addDecorator(HtmlTagDecorator::make())
            ->addDecorator(MarginDecorator::make());
    }
public function makeHtml(Enviroment $enviroment): ?Parser
    {

        if (!$enviroment->isHtml()) {
            return null;
        }

        return Parser::make()
            ->addDecorator(PaddingDecorator::make())
            ->addDecorator(LineWidthDecorator::make())
            ->addDecorator(HtmlTagDecorator::make())
            ->addDecorator(MarginDecorator::make());
    }
public function makeHtml ( Enviroment $ enviroment ) : ? Parser { if ( ! $ enviroment -> isHtml ( ) ) { return null ; } return Parser :: make ( ) -> addDecorator ( PaddingDecorator :: make ( ) ) -> addDecorator ( LineWidthDecorator :: make ( ) ) -> addDecorator ( HtmlTagDecorator :: make ( ) ) -> addDecorator ( MarginDecorator :: make ( ) ) ; }
Crea un objeto Html Parser

@param \PlanB\Beautifier\Enviroment $enviroment

@return null| \PlanB\Beautifier\Parser\Parser
Crea un objeto Html Parser