Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | public function __construct(Container $container, StorageObject $object) |
||
22 | { |
||
23 | $this->container = $container; |
||
24 | $this->filename = basename($object->name); |
||
25 | $this->pathname = $object->name; |
||
26 | $this->size = (int)$object->contentLength; |
||
27 | $this->lastModified = $object->lastModified->getTimestamp(); |
||
|
|||
28 | } |
||
29 | |||
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.