Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
35 | public function value(array $data, $owner = null) |
||
36 | { |
||
37 | AssertKey::exists($this, $data, $this->name()); |
||
38 | if (!$this->condition->isSatisfiedBy($data[$this->name()])) { |
||
39 | throw ConstraintNotSatisfied::with($data[$this->name()], $this->napping, $this->condition); |
||
40 | } |
||
41 | return $this->napping->value($data, $owner); |
||
42 | } |
||
44 |