Exemple #1
0
 /**
  * Gibt alle Konstanten der Klasse (selbst) zurück
  *
  * @return array
  */
 public function getConstants()
 {
     if (!isset($this->parentClass)) {
         return $this->constants;
     }
     $constants = array();
     foreach ($this->constants as $constant) {
         if (!$this->parentClass->hasConstant($constant->getName())) {
             $constants[$constant->getName()] = $constant;
         }
     }
     return $constants;
 }