DateTime
last analyzed

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
now() 0 1 ?
fromNative() 0 1 ?
fromString() 0 1 ?
1
<?php
2
3
namespace BestServedCold\PhalueObjects\Contract;
4
5
/**
6
 * Interface DateTime
7
 *
8
 * @package   BestServedCold\PhalueObjects\Contract
9
 * @author    Adam Lewis <[email protected]>
10
 * @copyright Copyright (c) 2015 Best Served Cold Media Limited
11
 * @license   http://http://opensource.org/licenses/GPL-3.0 GPL License
12
 * @link      http://bestservedcold.com
13
 * @since     0.0.1-alpha
14
 * @version   0.0.2-alpha
15
 */
16
interface DateTime
0 ignored issues
show
Coding Style introduced by
DateTime does not seem to conform to the naming convention (^[A-Z][a-zA-Z0-9]*Interface$).

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...
17
{
18
    /**
19
     * Now.
20
     *
21
     * @return static
22
     */
23
    public static function now();
24
25
    /**
26
     * From Native
27
     *
28
     * @param \DateTime $native
29
     * @return DateTime
30
     */
31
    public static function fromNative(\DateTime $native);
32
33
    /**
34
     * From String
35
     *
36
     * @param  string $string
37
     * @return DateTime
38
     */
39
    public static function fromString($string);
40
}
41