public function setPackage($package) { parent::setPackage($package); foreach ($this->getConstants() as $constant) { $constant->setPackage($package); } foreach ($this->getMethods() as $method) { $method->setPackage($package); } }
/** * @param string $package */ public function setPackage($package) { parent::setPackage($package); foreach ($this->getConstants() as $constant) { // TODO #840: Workaround; for some reason there are NULLs in the constants array. if ($constant) { $constant->setPackage($package); } } foreach ($this->getProperties() as $property) { // TODO #840: Workaround; for some reason there are NULLs in the properties array. if ($property) { $property->setPackage($package); } } foreach ($this->getMethods() as $method) { // TODO #840: Workaround; for some reason there are NULLs in the methods array. if ($method) { $method->setPackage($package); } } }
public function setPackage($package) { parent::setPackage($package); foreach ($this->getProperties() as $property) { $property->setPackage($package); } foreach ($this->getMethods() as $method) { $method->setPackage($package); } }