| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class HasOneProxy implements MapsProperty |
||
| 17 | { |
||
| 18 | private $name; |
||
| 19 | private $proxyBuilder; |
||
| 20 | |||
| 21 | protected function __construct( |
||
| 22 | string $name, |
||
| 23 | ProducesProxies $proxyBuilder |
||
| 24 | ) { |
||
| 25 | $this->name = $name; |
||
| 26 | $this->proxyBuilder = $proxyBuilder; |
||
| 27 | } |
||
| 28 | |||
| 29 | public static function inProperty( |
||
| 30 | string $name, |
||
| 31 | ProducesProxies $proxyBuilder |
||
| 32 | ) : MapsProperty |
||
| 33 | { |
||
| 34 | return new static($name, $proxyBuilder); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** @inheritdoc @return mixed|object */ |
||
| 38 | public function value(array $data, $owner = null) |
||
| 41 | } |
||
| 42 | |||
| 43 | public function name() : string |
||
| 48 |