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