Agent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A equals() 0 12 3
1
<?php
2
3
/*
4
 * This file is part of the xAPI package.
5
 *
6
 * (c) Christian Flothmann <[email protected]>
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 Xabbuh\XApi\Model;
13
14
/**
15
 * An individual Agent of an xAPI {@link Statement}.
16
 *
17
 * @author Christian Flothmann <[email protected]>
18
 */
19
final class Agent extends Actor
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function equals(Actor $actor)
25
    {
26
        if (!parent::equals($actor)) {
27
            return false;
28
        }
29
30
        if ('Xabbuh\XApi\Model\Agent' !== get_class($actor)) {
31
            return false;
32
        }
33
34
        return true;
35
    }
36
}
37