@@ 95-101 (lines=7) @@ | ||
92 | } |
|
93 | ||
94 | /** {@inheritdoc} */ |
|
95 | public function rules() |
|
96 | { |
|
97 | return [ |
|
98 | [['cart_position_id', 'object', 'client', 'type', 'currency', 'item'], 'safe'], |
|
99 | [['amount'], 'number'], |
|
100 | ]; |
|
101 | } |
|
102 | } |
|
103 |
@@ 70-76 (lines=7) @@ | ||
67 | } |
|
68 | ||
69 | /** {@inheritdoc} */ |
|
70 | public function rules() |
|
71 | { |
|
72 | return [ |
|
73 | [['tariff_id', 'object', 'seller', 'client', 'type', 'currency', 'item'], 'safe'], |
|
74 | [['amount'], 'number'], |
|
75 | ]; |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Synchronises the model to represent actual state of [[position]] |