| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 2 | public function __construct($container, $object) |
|
| 34 | { |
||
| 35 | 2 | $this->container = $container; |
|
| 36 | 2 | $this->filename = basename($object->name); |
|
| 37 | 2 | $this->pathname = $object->name; |
|
| 38 | 2 | $this->size = (int)$object->contentLength; |
|
| 39 | 2 | $this->lastModified = $object->lastModified->getTimestamp(); |
|
|
|
|||
| 40 | 2 | } |
|
| 41 | |||
| 56 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.