src/Shared/Delegator/DelegatorAwareTrait.php
public function getDelegator(
        /*# bool */ $recursive = false
    )/*# : DelegatorInterface */ {
        if ($this->hasDelegator()) {
            $dele = $this->delegator;
            if ($this->isRecursiveDelegator($recursive, $dele)) {
                return $dele->getDelegator($recursive);
            }
            return $dele;
        }

        throw new NotFoundException(
            Message::get(Message::MSG_DELEGATOR_UNKNOWN, get_called_class()),
            Message::MSG_DELEGATOR_UNKNOWN
        );
    }
public function getDelegator(
        /*# bool */ $recursive = false
    )/*# : DelegatorInterface */ {
        if ($this->hasDelegator()) {
            $dele = $this->delegator;
            if ($this->isRecursiveDelegator($recursive, $dele)) {
                return $dele->getDelegator($recursive);
            }
            return $dele;
        }

        throw new NotFoundException(
            Message::get(Message::MSG_DELEGATOR_UNKNOWN, get_called_class()),
            Message::MSG_DELEGATOR_UNKNOWN
        );
    }
{@inheritDoc}