1 | <?php |
||
6 | class CopyReference extends BaseModel |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * The expiration date of the copy reference |
||
11 | * |
||
12 | * @var DateTime |
||
13 | */ |
||
14 | protected $expires; |
||
15 | |||
16 | /** |
||
17 | * The copy reference |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $reference; |
||
22 | |||
23 | /** |
||
24 | * File or Folder Metadata |
||
25 | * |
||
26 | * @var \Dropbox\Models\FileMetadata|\Dropbox\Models\FolderMetadata |
||
27 | */ |
||
28 | protected $metadata; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Create a new CopyReference instance |
||
33 | * |
||
34 | * @param array $data |
||
35 | */ |
||
36 | 2 | public function __construct(array $data) |
|
43 | |||
44 | /** |
||
45 | * Set Metadata |
||
46 | */ |
||
47 | 2 | protected function setMetadata() |
|
54 | |||
55 | /** |
||
56 | * Get the expiration date of the copy reference |
||
57 | * |
||
58 | * @return DateTime |
||
59 | */ |
||
60 | public function getExpirationDate() |
||
64 | |||
65 | /** |
||
66 | * The metadata for the file/folder |
||
67 | * |
||
68 | * @return \Dropbox\Models\FileMetadata|\Dropbox\Models\FolderMetadata |
||
69 | */ |
||
70 | 2 | public function getMetadata() |
|
74 | |||
75 | /** |
||
76 | * Get the copy reference |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | 2 | public function getReference() |
|
84 | } |
||
85 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..