public function add(TextParser $parser)
    {
        $objectHash = $this->objectHash($parser);

        if (isset($this->parserIds[$objectHash])) {
            return $this;
        }

        $this->parsers[] = $parser;

        $this->parserIds[$objectHash] = true;

        return $this;
    }
public function add(TextParser $parser)
    {
        $objectHash = $this->objectHash($parser);

        if (isset($this->parserIds[$objectHash])) {
            return $this;
        }

        $this->parsers[] = $parser;

        $this->parserIds[$objectHash] = true;

        return $this;
    }
public function add ( TextParser $ parser ) { $ objectHash = $ this -> objectHash ( $ parser ) ; if ( isset ( $ this -> parserIds [ $ objectHash ] ) ) { return $ this ; } $ this -> parsers [ ] = $ parser ; $ this -> parserIds [ $ objectHash ] = true ; return $ this ; }
Add a new parser to the render queue.

@param \Ems\Contracts\Core\TextParser $parser

@return self
Add a new parser to the render queue .