@@ 75-82 (lines=8) @@ | ||
72 | $this->addLine('.. toctree::'); |
|
73 | $this->addIndentLine(1, ':maxdepth: 1')->addLine(); |
|
74 | /** @var Fqsen $entry */ |
|
75 | foreach ($this->currentNamespace->getInterfaces() as $entry) { |
|
76 | $subPath = $entry; |
|
77 | if ($currentNamespaceFqsen !== '\\' && substr($entry, 0, strlen($currentNamespaceFqsen)) === $currentNamespaceFqsen) { |
|
78 | $subPath = substr($entry, strlen($currentNamespaceFqsen)); |
|
79 | } |
|
80 | $path = substr(str_replace("\\", "/", $subPath), 1); |
|
81 | $this->addIndentLine(1, $entry->getName() . ' <' . $path . '>'); |
|
82 | } |
|
83 | $this->addLine()->addLine(); |
|
84 | ||
85 | $this->addH2('Classes'); |
|
@@ 89-96 (lines=8) @@ | ||
86 | $this->addLine('.. toctree::'); |
|
87 | $this->addIndentLine(1, ':maxdepth: 1')->addLine(); |
|
88 | /** @var Fqsen $entry */ |
|
89 | foreach ($this->currentNamespace->getClasses() as $entry) { |
|
90 | $subPath = $entry; |
|
91 | if ($currentNamespaceFqsen !== '\\' && substr($entry, 0, strlen($currentNamespaceFqsen)) === $currentNamespaceFqsen) { |
|
92 | $subPath = substr($entry, strlen($currentNamespaceFqsen)); |
|
93 | } |
|
94 | $path = substr(str_replace("\\", "/", $subPath), 1); |
|
95 | $this->addIndentLine(1,$entry->getName() . ' <' . $path . '>'); |
|
96 | } |
|
97 | $this->addLine()->addLine(); |
|
98 | ||
99 | // FIXME: add functions / constants |