Respect\Validation\Exceptions\NestedValidationException::getRelatedByName PHP 메소드

getRelatedByName() 공개 메소드

public getRelatedByName ( $name ) : ValidationException
리턴 ValidationException
    public function getRelatedByName($name)
    {
        if ($this->isRelated($name, $this)) {
            return $this;
        }
        foreach ($this->getRecursiveIterator() as $exception) {
            if ($this->isRelated($name, $exception)) {
                return $exception;
            }
        }
    }