Passed
Push — master ( 99c812...113862 )
by P.R.
02:15
created

PlaisioObject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Plaisio;
5
6
/**
7
 * Parent class for all classes that are operating under PhpPlaisio.
8
 */
9
class PlaisioObject
10
{
11
  //--------------------------------------------------------------------------------------------------------------------
12
  /**
13
   * The kernel of PhpPlaisio.
14
   *
15
   * @var PlaisioKernel
16
   */
17
  protected $nub;
18
19
  //--------------------------------------------------------------------------------------------------------------------
20
  /**
21
   * Object constructor.
22
   *
23
   * @param PlaisioObject $object The parent PhpPlaisio object.
24
   */
25 2
  public function __construct(PlaisioObject $object)
26
  {
27 2
    $this->nub = $object->nub;
28 2
  }
29
30
  //--------------------------------------------------------------------------------------------------------------------
31
}
32
33
//----------------------------------------------------------------------------------------------------------------------
34