Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | final class To implements KnowsWhereToLookTo |
||
12 | { |
||
13 | private $who; |
||
14 | private $identity; |
||
15 | |||
16 | private function __construct(string $who, IdentifiesEntities $identity) |
||
17 | { |
||
18 | $this->who = $who; |
||
19 | $this->identity = $identity; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Makes a new target locator. |
||
24 | * |
||
25 | * @param string $label The label of the source objects. |
||
26 | * @param IdentifiesEntities $identity The mechanism to identify the target |
||
27 | * entity of the row. |
||
28 | * @return KnowsWhereToLook |
||
29 | */ |
||
30 | public static function the( |
||
31 | string $label, |
||
32 | IdentifiesEntities $identity |
||
33 | ): KnowsWhereToLook { |
||
34 | return new self($label, $identity); |
||
35 | } |
||
36 | |||
37 | /** @inheritdoc */ |
||
38 | public function label(): string |
||
41 | } |
||
42 | |||
43 | /** @inheritdoc */ |
||
44 | public function this(array $relationship): string |
||
47 | } |
||
48 | |||
49 | /** @inheritdoc */ |
||
50 | public function ignoreThe(array $row): bool |
||
55 |