1 | <?php |
||
18 | class ObjectParser extends AbstractParser implements ParserInterface |
||
19 | { |
||
20 | /** @var string */ |
||
21 | private $className; |
||
22 | public function getClassName() { return $this->className;} |
||
24 | |||
25 | /** @var Hydrator */ |
||
26 | private $hydrator; |
||
27 | public function getHydrator() { return $this->hydrator; } |
||
29 | |||
30 | /** |
||
31 | * ObjectParser constructor. |
||
32 | * @param string $className |
||
33 | * @param Hydrator $hydrator |
||
34 | * @param string $errorMessage |
||
35 | */ |
||
36 | public function __construct(string $className, Hydrator $hydrator, string $errorMessage = "") |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @param $rawValue |
||
46 | * @return mixed |
||
47 | * |
||
48 | * @throws ParsingException |
||
49 | */ |
||
50 | public function parse($rawValue) |
||
65 | } |
||
66 |