Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
26 | 2 | public function __construct(S3Client $client, string $bucket, array $object) |
|
27 | { |
||
28 | 2 | $this->client = $client; |
|
29 | 2 | $this->bucket = $bucket; |
|
30 | 2 | $this->filename = basename($object['Key']); |
|
31 | 2 | $this->pathname = $object['Key']; |
|
32 | 2 | $this->size = $object['Size']; |
|
33 | 2 | $this->lastModified = strtotime($object['LastModified']); |
|
34 | 2 | } |
|
35 | |||
52 | } |