final public function setDelegates(array $delegates)
    {
        $this->delegates = [];
        foreach ($delegates as $delegate) {
            $this->addDelegate($delegate);
        }
        return $this;
    }
final public function setDelegates(array $delegates)
    {
        $this->delegates = [];
        foreach ($delegates as $delegate) {
            $this->addDelegate($delegate);
        }
        return $this;
    }
final public function setDelegates ( array $ delegates ) { $ this -> delegates = [ ] ; foreach ( $ delegates as $ delegate ) { $ this -> addDelegate ( $ delegate ) ; } return $ this ; }
Assigns a collection of delegare objects.

@param  EntityInterface[] $delegates One or more delegate objects to register.
@return self
Assigns a collection of delegare objects .