| 1 | <?php |
||
| 13 | class PhpView implements ViewInterface { |
||
| 14 | use HasContextTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * View name. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $name = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Filepath to view. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $filepath = ''; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritDoc} |
||
| 32 | */ |
||
| 33 | 1 | public function getName() { |
|
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | 1 | public function setName( $name ) { |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Get filepath. |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 1 | public function getFilepath() { |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Set filepath. |
||
| 56 | * |
||
| 57 | * @param string $filepath |
||
| 58 | * @return self $this |
||
| 59 | */ |
||
| 60 | 1 | public function setFilepath( $filepath ) { |
|
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritDoc} |
||
| 67 | */ |
||
| 68 | 7 | public function toString() { |
|
| 94 | |||
| 95 | /** |
||
| 96 | * {@inheritDoc} |
||
| 97 | */ |
||
| 98 | 1 | public function toResponse() { |
|
| 103 | } |
||
| 104 |