public function getRelated() { if (!$this->exceptions instanceof SplObjectStorage) { $this->exceptions = new SplObjectStorage(); } return $this->exceptions; }
public function __construct(NestedValidationException $parent) { $this->exceptions = $parent->getRelated(); }