Conditions | 5 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public static function getDebugTitle($document) |
||
27 | { |
||
28 | $title = spl_object_hash($document); |
||
29 | |||
30 | if ($document instanceof PathBehavior && $document->getPath()) { |
||
31 | $title .= ' (' . $document->getPath() . ')'; |
||
32 | } elseif ($document instanceof TitleBehavior && $document->getTitle()) { |
||
33 | $title .= ' (' . $document->getTitle() . ')'; |
||
34 | } |
||
35 | |||
36 | return $title; |
||
37 | } |
||
38 | } |
||
39 |