1 | <?php |
||
9 | class OpenStack extends Remote |
||
10 | { |
||
11 | /** |
||
12 | * @var Container |
||
13 | */ |
||
14 | protected $container; |
||
15 | |||
16 | /** |
||
17 | * OpenStack constructor. |
||
18 | * |
||
19 | * @param Container $container |
||
20 | */ |
||
21 | public function __construct(Container $container, StorageObject $object) |
||
29 | |||
30 | /** |
||
31 | * Return whether the file is writable or not. |
||
32 | * |
||
33 | * @return boolean |
||
34 | */ |
||
35 | public function isWritable(): bool |
||
39 | |||
40 | /** |
||
41 | * Deletes the file. |
||
42 | * |
||
43 | * @throws \phpbu\App\Exception |
||
44 | */ |
||
45 | public function unlink() |
||
53 | } |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.