Passed
Push — master ( c2e0e3...51d343 )
by Maxim
02:05 queued 21s
created

RunningSuit::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 4
1
<?php
2
/**
3
 * This file is a part of "Axessors" library.
4
 *
5
 * @author <[email protected]>
6
 * @license GPL
7
 */
8
9
namespace NoOne4rever\Axessors;
10
11
/**
12
 * Class RunningSuit.
13
 * 
14
 * Stores running configuration.
15
 * 
16
 * @package NoOne4rever\Axessors
17
 */
18
abstract class RunningSuit
19
{
20
    public const INPUT_MODE = 4;
21
    public const OUTPUT_MODE = 8;
22
    
23
    /** @var object|null object */
24
    protected $object;
25
    /** @var PropertyData property data */
26
    protected $propertyData;
27
    /** @var string class */
28
    protected $class;
29
    /** @var int running mode */
30
    protected $mode;
31
    
32
    public function __construct(int $mode, PropertyData $data, string $class, $object = null)
33
    {
34
        $this->mode = $mode;
35
        $this->propertyData = $data;
36
        $this->class = $class;
37
        $this->object = $object;
38
    }
39
}