public function getSpecification() { if (null !== $this->getParent() && $this->getParent() instanceof Specification) { return $this->getParent(); } }