| 1 | <?php |
||
| 5 | class MutatorReference implements ReferenceInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $getter; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $setter; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $field |
||
| 19 | * @param null|string $getter |
||
| 20 | * @param null|string $setter |
||
| 21 | */ |
||
| 22 | 10 | public function __construct($field, $getter = null, $setter = null) |
|
| 27 | |||
| 28 | 3 | public function getValue($instance) |
|
| 35 | |||
| 36 | 3 | public function setValue($instance, $value) |
|
| 45 | |||
| 46 | 10 | private function classify($word) |
|
| 50 | } |
||
| 51 |