/** * Constructs a new exception instance. * * @param PHP_Depend_Code_AbstractClassOrInterface $type The class or * interface that is part of the endless inheritance hierarchy. */ public function __construct(PHP_Depend_Code_AbstractClassOrInterface $type) { parent::__construct(sprintf('Type %s\\%s is part of an endless inheritance hierarchy.', preg_replace('(\\W+)', '\\', $type->getPackage()->getName()), $type->getName())); }
/** * Constructs a new exception instance. * * @param PHP_Depend_Code_AbstractItem $owner The owning code object. */ public function __construct(PHP_Depend_Code_AbstractItem $owner) { parent::__construct('The mandatory parent was not defined.'); }
/** * Constructs a new exception instance. * * @param PHP_Depend_Code_Method $method The method that could not be * applied to the given <b>$type</b>. * @param PHP_Depend_Code_AbstractType $type The class or trait that cannot * resolve the imported methods. */ public function __construct(PHP_Depend_Code_Method $method, PHP_Depend_Code_AbstractType $type) { parent::__construct(sprintf('Trait method %s has not been applied, because there are ' . 'collisions with other trait methods on %s\\%s.', $method->getName(), preg_replace('(\\W+)', '\\', $type->getPackage()->getName()), $type->getName())); }