@@ 40-47 (lines=8) @@ | ||
37 | * |
|
38 | * @return array |
|
39 | */ |
|
40 | public function scenarios() |
|
41 | { |
|
42 | return [ |
|
43 | ModelInterface::SCENARIO_CREATE => $this->attributes(), |
|
44 | ModelInterface::SCENARIO_UPDATE => $this->attributes(), |
|
45 | self::SCENARIO_DEFAULT => $this->attributes(), |
|
46 | ]; |
|
47 | } |
|
48 | } |
|
49 |
@@ 55-62 (lines=8) @@ | ||
52 | * |
|
53 | * @return array |
|
54 | */ |
|
55 | public function scenarios(): array |
|
56 | { |
|
57 | return [ |
|
58 | ModelInterface::SCENARIO_CREATE => $this->attributes(), |
|
59 | ModelInterface::SCENARIO_UPDATE => $this->attributes(), |
|
60 | self::SCENARIO_DEFAULT => $this->attributes(), |
|
61 | ]; |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * Labels of all fields. |