1 | <?php |
||
16 | final class UpdateProjectNamespaceCommand |
||
17 | { |
||
18 | /** |
||
19 | * The project team. |
||
20 | * |
||
21 | * @var \Gitamin\Models\ProjectTeam |
||
22 | */ |
||
23 | public $team; |
||
24 | |||
25 | /** |
||
26 | * The project team name. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | public $name; |
||
31 | |||
32 | /** |
||
33 | * The project team slug. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | public $slug; |
||
38 | |||
39 | /** |
||
40 | * The project team order. |
||
41 | * |
||
42 | * @var int |
||
43 | */ |
||
44 | public $order; |
||
45 | |||
46 | /** |
||
47 | * The validation rules. |
||
48 | * |
||
49 | * @var string[] |
||
50 | */ |
||
51 | public $rules = [ |
||
52 | 'name' => 'string', |
||
53 | 'name' => 'string', |
||
54 | 'order' => 'int', |
||
55 | ]; |
||
56 | |||
57 | /** |
||
58 | * Create a add project team command instance. |
||
59 | * |
||
60 | * @param \Gitamin\Models\ProjectTeam $team |
||
61 | * @param string $name |
||
62 | * @param string $slug |
||
63 | * @param int $order |
||
64 | * |
||
65 | * @return void |
||
|
|||
66 | */ |
||
67 | public function __construct(ProjectTeam $team, $name, $slug, $order) |
||
74 | } |
||
75 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.