Total Complexity | 11 |
Total Lines | 77 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Category extends Model |
||
11 | { |
||
12 | /** |
||
13 | * Category constructor. |
||
14 | */ |
||
15 | public function __construct() |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param string $name |
||
22 | * @param string $email |
||
23 | * @param string $password |
||
24 | * @param string|null $document |
||
25 | * @return User |
||
26 | */ |
||
27 | public function bootstrap(string $name): Category |
||
28 | { |
||
29 | $this->name = $name; |
||
|
|||
30 | return $this; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param string $name |
||
35 | * @param string $columns |
||
36 | * @return null|Category |
||
37 | */ |
||
38 | public function findByName(string $name, string $columns = "*"): ?Category |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function save(): bool |
||
89 |