1 | <?php |
||
15 | class CloudImageCached extends CloudImage |
||
16 | { |
||
17 | /** @var CloudImageCachedStore */ |
||
18 | protected $storeRecord; |
||
19 | |||
20 | /** |
||
21 | * Create a new cached image. |
||
22 | * @param string $filename The filename of the image. |
||
23 | * @param boolean $isSingleton This this to true if this is a singleton() object, a stub for calling methods. |
||
24 | * Singletons don't have their defaults set. |
||
25 | */ |
||
26 | public function __construct($filename = null, $isSingleton = false) |
||
37 | |||
38 | /** |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function exists() |
||
45 | |||
46 | /** |
||
47 | * @return String |
||
48 | */ |
||
49 | public function getRelativePath() |
||
53 | |||
54 | |||
55 | /** |
||
56 | * Prevent creating new tables for the cached record |
||
57 | * |
||
58 | * @return false |
||
59 | */ |
||
60 | public function requireTable() |
||
64 | |||
65 | |||
66 | /** |
||
67 | * Prevent writing the cached image to the database, but write the store record instead |
||
68 | */ |
||
69 | public function write($showDebug = false, $forceInsert = false, $forceWrite = false, $writeComponents = false) |
||
77 | |||
78 | |||
79 | /** |
||
80 | * Simulates a delete |
||
81 | */ |
||
82 | public function delete() |
||
102 | |||
103 | |||
104 | /** |
||
105 | * @param CloudImageCachedStore $store |
||
106 | * @return $this |
||
107 | */ |
||
108 | public function setStoreRecord(CloudImageCachedStore $store) |
||
116 | |||
117 | |||
118 | /** |
||
119 | * @return CloudImageCachedStore |
||
120 | */ |
||
121 | public function getStoreRecord() |
||
125 | |||
126 | |||
127 | /** |
||
128 | * @param $val |
||
129 | */ |
||
130 | public function setCloudMetaJson($val) |
||
138 | |||
139 | |||
140 | /** |
||
141 | * @param $val |
||
142 | */ |
||
143 | public function setCloudStatus($val) |
||
151 | |||
152 | |||
153 | /** |
||
154 | * @param $val |
||
155 | */ |
||
156 | public function setCloudSize($val) |
||
164 | } |
||
165 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: