Completed
Push — master ( cfed93...a79400 )
by Phecho
03:52
created

ProjectNamespaceWasAddedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of Gitamin.
5
 * 
6
 * Copyright (C) 2015-2016 The Gitamin Team
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Gitamin\Events\ProjectNamespace;
13
14
use Gitamin\Models\ProjectNamespace;
15
16
class ProjectNamespaceWasAddedEvent
17
{
18
    /**
19
     * The project team that was added.
20
     *
21
     * @var \Gitamin\Models\ProjectTeam
22
     */
23
    public $group;
24
25
    /**
26
     * Create a new project team was added event instance.
27
     *
28
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

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.

Loading history...
29
     */
30
    public function __construct(ProjectNamespace $group)
31
    {
32
        $this->group = $group;
0 ignored issues
show
Documentation Bug introduced by
It seems like $group of type object<Gitamin\Models\ProjectNamespace> is incompatible with the declared type object<Gitamin\Models\ProjectTeam> of property $group.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
33
    }
34
}
35