1 | <?php |
||
12 | class PriceTypeLink extends \Model { |
||
13 | static $cols = [ |
||
|
|||
14 | 'card_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'card'], |
||
15 | 'item_offer_price_type_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'type'], |
||
16 | ]; |
||
17 | static $dataManagers = [ |
||
18 | 'manager' => [ |
||
19 | 'cols' => ['card_id', 'item_offer_price_type_id'] |
||
20 | ] |
||
21 | ]; |
||
22 | static $forms = [ |
||
23 | 'manager' => [ |
||
24 | 'map' => [ |
||
25 | ['card_id', 'item_offer_price_type_id'] |
||
26 | ] |
||
27 | ] |
||
28 | ]; |
||
29 | |||
30 | static function relations() { |
||
42 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.