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

Metric::now()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 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