Beispiel #1
0
 /**
  * Constructs a new ezcReflectionObjectType object.
  *
  * @param string|ReflectionClass $class
  *        Name or ReflectionClass object of the class to be
  *        reflected
  */
 public function __construct($class)
 {
     if ($class instanceof ReflectionClass) {
         $this->setClass($class);
         parent::__construct($this->getClass()->getName());
     } else {
         parent::__construct($class);
     }
 }
 /**
  * @param string $typeName
  */
 public function __construct($typeName)
 {
     parent::__construct($typeName);
     $this->_parseTypeName();
 }