EqualsUsesWindUp   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 2
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A equals() 0 3 2
1
<?php declare(strict_types=1);
2
namespace Kepawni\Twilted\Basic;
3
4
trait EqualsUsesWindUp
5
{
6
    /**
7
     * @param mixed $other Another value to test.
8
     *
9
     * @return bool True when the other value is equal to this instance.
10
     */
11
    public function equals($other): bool
12
    {
13
        return $other instanceof static && $this->windUp() === $other->windUp();
14
    }
15
16
    abstract public function windUp(): array;
17
}
18