public function parse(array $data, ParsingDispatcher $parsingDispatcher)
    {
        if (!array_key_exists('FullTextCriterion', $data)) {
            throw new Exceptions\Parser('Invalid <FullTextCriterion> format');
        }

        return new FullTextCriterion($data['FullTextCriterion']);
    }
public function parse(array $data, ParsingDispatcher $parsingDispatcher)
    {
        if (!array_key_exists('FullTextCriterion', $data)) {
            throw new Exceptions\Parser('Invalid <FullTextCriterion> format');
        }

        return new FullTextCriterion($data['FullTextCriterion']);
    }
public function parse ( array $ data , ParsingDispatcher $ parsingDispatcher ) { if ( ! array_key_exists ( 'FullTextCriterion' , $ data ) ) { throw new Exceptions \ Parser ( 'Invalid <FullTextCriterion> format' ) ; } return new FullTextCriterion ( $ data [ 'FullTextCriterion' ] ) ; }
Parses input structure to a FullText criterion.

@param array $data
@param \eZ\Publish\Core\REST\Common\Input\ParsingDispatcher $parsingDispatcher

@throws \eZ\Publish\Core\REST\Common\Exceptions\Parser

@return \eZ\Publish\API\Repository\Values\Content\Query\Criterion\FullText
Parses input structure to a FullText criterion .