| 1 | <?php |
||
| 13 | class ObjectConverter |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string|null |
||
| 17 | */ |
||
| 18 | protected $propertyPath; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var PropertyAccessor |
||
| 22 | */ |
||
| 23 | protected $propertyAccessor; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string|null $propertyPath |
||
| 27 | */ |
||
| 28 | 5 | public function __construct($propertyPath = null) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Sets the property |
||
| 36 | * |
||
| 37 | * @param string $propertyPath |
||
| 38 | */ |
||
| 39 | 1 | public function setPropertyPath($propertyPath) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Gets the property |
||
| 46 | * |
||
| 47 | * @return null|string |
||
| 48 | */ |
||
| 49 | 1 | public function getPropertyPath() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 4 | public function __invoke($input) |
|
| 75 | } |
||
| 76 |