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

RunningSuit   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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
}