| Total Complexity | 3 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 8 | class PhpView implements View  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * The root directory of view files  | 
            ||
| 12 | */  | 
            ||
| 13 | private string $directory;  | 
            ||
| 14 | |||
| 15 | public function __construct(string $directory)  | 
            ||
| 18 | }  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @inheritDoc  | 
            ||
| 22 | */  | 
            ||
| 23 | public function make(string $name, array $data = [], int $httpStatus = 200, array $httpHeaders = [])  | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            
If you suppress an error, we recommend checking for the error condition explicitly: