| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class DefaultEventFlexFormProvider implements EventFlexFormProvider |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | * |
||
| 29 | * @validate Romm.ConfigurationObject:FileExists |
||
| 30 | */ |
||
| 31 | protected $file; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $file |
||
| 35 | */ |
||
| 36 | public function __construct($file = '') |
||
| 37 | { |
||
| 38 | $this->file = $file; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getFlexFormValue() |
||
| 45 | { |
||
| 46 | return 'FILE:' . $this->file; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | public function hasFlexForm() |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getFile() |
||
| 63 | } |
||
| 64 | } |
||
| 65 |