1 | <?php |
||
16 | class ObjectImageWidget extends Widget |
||
17 | { |
||
18 | /** |
||
19 | * @var \app\properties\HasProperties|\yii\db\ActiveRecord|GetImages|null |
||
20 | */ |
||
21 | public $model = null; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | public $viewFile = 'img'; |
||
26 | /** |
||
27 | * @var null|int |
||
28 | */ |
||
29 | public $limit = null; |
||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | public $offset = 0; |
||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | public $thumbnailOnDemand = false; |
||
38 | /** |
||
39 | * @var int |
||
40 | */ |
||
41 | public $thumbnailWidth = 400; |
||
42 | /** |
||
43 | * @var int |
||
44 | */ |
||
45 | public $thumbnailHeight = 200; |
||
46 | /** |
||
47 | * @var bool |
||
48 | */ |
||
49 | public $useWatermark = false; |
||
50 | |||
51 | /** |
||
52 | * @var bool if true and images array empty show "No image" |
||
53 | */ |
||
54 | |||
55 | public $noImageOnEmptyImages = false; |
||
56 | |||
57 | /** @var array $additional Additional data passed to view */ |
||
58 | public $additional = []; |
||
59 | |||
60 | public function run() |
||
128 | } |
||
129 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.