public function __construct(Cert $cert) { $this->cert = $cert; if ($parent = $cert->getParent()) { $this->parentValidator = new self($parent); } }