Source of file Index.php
Size: 0,799 Bytes - Last Modified: 2014-05-08T01:19:22+02:00
/home/theseer/storage/php/phpdox/src/generator/project/Index.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php namespace TheSeer\phpDox\Generator { use TheSeer\fDOM\fDOMDocument; class Index { private $dom; public function __construct(fDOMDocument $dom) { $this->dom = $dom; } public function asDom() { return $this->dom; } public function hasNamespaces() { return $this->dom->queryOne('count(//phpdox:namespace)') > 0; } public function hasInterfaces() { return $this->dom->queryOne('count(//phpdox:interface)') > 0; } public function hasTraits() { return $this->dom->queryOne('count(//phpdox:trait)') > 0; } public function hasClasses() { return $this->dom->queryOne('count(//phpdox:class)') > 0; } } } |