Completed
Push — master ( 8c9cd6...ef07c2 )
by Adam
08:13
created

Metric   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 2
now() 0 1 ?
1
<?php
2
3
namespace BestServedCold\PhalueObjects;
4
5
use BestServedCold\PhalueObjects\Mathematical\Operator\ArithmeticTrait;
6
7
abstract class Metric extends ValueObject
0 ignored issues
show
Coding Style introduced by
Metric does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
8
{
9
    use ArithmeticTrait;
10
11
    public function __toString()
12
    {
13
        return is_array($this->getValue()) ? implode(',', $this->getValue()) : (string) $this->getValue();
14
    }
15
16
    /**
17
     * @return static
18
     */
19
    public abstract static function now();
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
20
}
21