1 | <?php |
||
28 | trait CartPositionTrait |
||
29 | { |
||
30 | use \yz\shoppingcart\CartPositionTrait; |
||
31 | |||
32 | /** |
||
33 | * @var Model object being put in cart |
||
34 | */ |
||
35 | protected $_model; |
||
36 | |||
37 | /** |
||
38 | * @var string|int ID of object being put in cart |
||
39 | */ |
||
40 | protected $_id; |
||
41 | |||
42 | public function rules() |
||
49 | |||
50 | public function attributeLabels() |
||
60 | |||
61 | public function attributes() |
||
70 | |||
71 | /** |
||
72 | * This closure will be called in [[GridView::rowOptions]]. |
||
73 | * |
||
74 | * @param integer $key the key value associated with the current data model |
||
75 | * @param integer $index the zero-based index of the data model in the model array returned by [[dataProvider]] |
||
76 | * @param GridView $grid the GridView object |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getRowOptions($key, $index, $grid) |
||
83 | |||
84 | public function getIcon() |
||
88 | |||
89 | public function getName() |
||
93 | |||
94 | public function getDescription() |
||
98 | |||
99 | public function renderDescription() |
||
103 | |||
104 | public function getAdditionalLinks(): array |
||
105 | { |
||
106 | return []; |
||
107 | } |
||
108 | |||
109 | public function getModel() |
||
113 | } |
||
114 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.