Beispiel #1
0
 /**
  * @return ReflectedClass
  */
 public function getClass()
 {
     if ($this->object instanceof ReflectedClass) {
         return $this->object;
     }
     throw new \RuntimeException('Method is not part of a class but of ' . $this->object->getKind() . ' instead');
 }