1 | <?php |
||
8 | class EntityModel implements \Common\IEntity { |
||
9 | // /** |
||
10 | // * Link to DB which used by this EntityModel |
||
11 | // * |
||
12 | // * @var db_mysql $dbStatic |
||
13 | // * deprecated - replace with container ID like 'db' or 'dbAuth' |
||
14 | // */ |
||
15 | // protected static $dbStatic; |
||
16 | |||
17 | /** |
||
18 | * Name of exception class that would be thrown |
||
19 | * |
||
20 | * Uses for calling when you don't know which exact exception should be called |
||
21 | * On EntityModel's children should be used exception class name |
||
22 | * |
||
23 | * @var string $exceptionClass |
||
24 | */ |
||
25 | protected static $exceptionClass = 'EntityException'; |
||
26 | |||
27 | /** |
||
28 | * Container for property values |
||
29 | * |
||
30 | * @var \Common\IPropertyContainer $_container |
||
31 | */ |
||
32 | protected $_container; |
||
33 | // protected static $_containerName = 'V2PropertyContainer'; |
||
|
|||
34 | |||
35 | /** |
||
36 | * Service to work with rows |
||
37 | * |
||
38 | * @var \DbRowDirectOperator $rowOperator |
||
39 | */ |
||
40 | protected static $rowOperator; |
||
41 | |||
42 | /** |
||
43 | * EntityModel constructor. |
||
44 | * |
||
45 | * @param \Common\GlobalContainer $gc |
||
46 | */ |
||
47 | public function __construct($gc) { |
||
51 | |||
52 | |||
53 | |||
54 | } |
||
55 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.