| 1 | <?php |
||
| 13 | class PhpView implements ViewInterface { |
||
| 14 | use HasNameTrait, HasContextTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Filepath to view. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $filepath = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get filepath. |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 1 | public function getFilepath() { |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Set filepath. |
||
| 34 | * |
||
| 35 | * @param string $filepath |
||
| 36 | * @return self $this |
||
| 37 | */ |
||
| 38 | 1 | public function setFilepath( $filepath ) { |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritDoc} |
||
| 45 | */ |
||
| 46 | 7 | public function toString() { |
|
| 70 | |||
| 71 | /** |
||
| 72 | * {@inheritDoc} |
||
| 73 | */ |
||
| 74 | 1 | public function toResponse() { |
|
| 79 | } |
||
| 80 |