| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 41 | protected function identificar()  | 
            ||
| 42 |     { | 
            ||
| 43 |         if (!isset(static::$identificadores)) { | 
            ||
| 44 | return true;  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 |         if (empty(static::$identificadores)) { | 
            ||
| 48 | return true;  | 
            ||
| 49 | }  | 
            ||
| 50 | |||
| 51 |         foreach (static::$identificadores as $identificador) { | 
            ||
| 52 | $identificadorInstance = new $identificador($this);  | 
            ||
| 53 | }  | 
            ||
| 54 | return true;  | 
            ||
| 55 | }  | 
            ||
| 56 | }  | 
            ||
| 57 | 
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: