Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class EnumProxy extends BaseProxy |
||
16 | { |
||
17 | /** |
||
18 | * Returns the real enum class FQCN |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | public static function enumClass() |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | protected function targetClass(): string |
||
33 | { |
||
34 | return $this->concord->enum($this->contract); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Tries guessing the associated contract class for an actual proxy class |
||
39 | * Depending on the convention used by concord, the default pattern is |
||
40 | * 'UserTypeProxy' -> enum == 'UserType' -> '../Contracts/UserType' |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | protected function guessContract() |
||
48 | ); |
||
49 | } |
||
51 |