1 | <?php |
||
18 | class ObjectParser extends MetaHydrator implements ParserInterface |
||
19 | { |
||
20 | /** @var string */ |
||
21 | private $className; |
||
22 | |||
23 | /** @var mixed */ |
||
24 | private $errorMessage; |
||
25 | |||
26 | /** |
||
27 | * ObjectParser constructor. |
||
28 | * @param string $className |
||
29 | * @param HydratingHandlerInterface[] $handlers |
||
30 | * @param ValidatorInterface[] $validators |
||
31 | * @param mixed $errorMessage |
||
32 | * @param Hydrator $simpleHydrator |
||
33 | */ |
||
34 | public function __construct(string $className, array $handlers = [], array $validators = [], string $errorMessage = "", Hydrator $simpleHydrator = null) |
||
40 | |||
41 | |||
42 | /** |
||
43 | * @param $rawValue |
||
44 | * @return mixed |
||
45 | * |
||
46 | * @throws ParsingException |
||
47 | */ |
||
48 | public function parse($rawValue) |
||
63 | } |
||
64 |