Passed
Branch dev_2x (3e8772)
by Adrian
01:42
created

Base   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 20
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Sirius\Orm\CodeGenerator\Observer;
5
6
abstract class Base
7
{
8
    const PRIORITY_HIGH = 100;
9
    const PRIORITY_LOW = -100;
10
11
    protected $priority = 0;
12
13
    public function __construct(int $priority = 0)
14
    {
15
        $this->priority = $priority;
16
    }
17
18
    abstract public function observe(string $key, $object);
19
20
    /**
21
     * This is for loggin/debugging purposes
22
     *
23
     * @return string
24
     */
25
    abstract public function __toString();
26
}
27