ToString::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
/**
4
 * PHP: Nelson Martell Library file
5
 *
6
 * Copyright © 2016-2021 Nelson Martell (http://nelson6e65.github.io)
7
 *
8
 * Licensed under The MIT License (MIT)
9
 * For full copyright and license information, please see the LICENSE
10
 * Redistributions of files must retain the above copyright notice.
11
 *
12
 * @copyright 2016-2021 Nelson Martell
13
 * @link      http://nelson6e65.github.io/php_nml/
14
 * @since     v0.6.0
15
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License (MIT)
16
 * */
17
18
namespace NelsonMartell\Test\DataProviders\ExampleClass;
19
20
use NelsonMartell\IConvertibleToString;
21
22
/**
23
 * Example class to be used in PropertiesHandler test.
24
 * Not customized.
25
 *
26
 * Prefixes in member names:
27
 * 'property': using getter or setter;
28
 * 'attribute': direct access
29
 */
30
class ToString implements IConvertibleToString
31
{
32
    public function __construct()
33
    {
34
    }
35
36
    /**
37
     * @var int
38
     */
39
    public $x = -1;
40
41
    /**
42
     * @var int
43
     */
44
    public $y = 1;
45
46
47
    /**
48
     * @inheritDoc
49
     */
50
    public function __toString()
51
    {
52
        return $this->toString();
53
    }
54
55
    /**
56
     * @inheritDoc
57
     */
58
    public function toString()
59
    {
60
        return $this->x . ', ' . $this->y;
61
    }
62
}
63