Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class CustomBehaviorForm extends Model { |
||
12 | public $name; |
||
13 | public $category_id; |
||
14 | |||
15 | private $user; |
||
16 | private $categories; |
||
17 | |||
18 | /** |
||
19 | * Creates a form model |
||
20 | * |
||
21 | * @param object $user |
||
22 | * @param array $config name-value pairs that will be used to initialize the object properties |
||
23 | */ |
||
24 | public function __construct(\common\interfaces\UserInterface $user, \common\interfaces\CategoryInterface $category, $config = []) { |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function rules() { |
||
39 | |||
40 | ]; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @codeCoverageIgnore |
||
45 | */ |
||
46 | public function attributeLabels() { |
||
47 | return [ |
||
48 | 'name' => 'Behavior Name', |
||
49 | 'category_id' => 'Behavior Category', |
||
50 | ]; |
||
51 | } |
||
52 | |||
53 | |||
54 | public function save() { |
||
60 | } |
||
61 | } |
||
62 |