src/Node/Node.php
public function setSubscribers(array $subscribers): NodeInterface
    {
        $this->_subscribers = [];

        foreach ($subscribers as $subscriber) {
            $this->addSubscriber($subscriber);
        }

        return $this;
    }
public function setSubscribers(array $subscribers): NodeInterface
    {
        $this->_subscribers = [];

        foreach ($subscribers as $subscriber) {
            $this->addSubscriber($subscriber);
        }

        return $this;
    }
public function setSubscribers ( array $ subscribers ) : NodeInterface { $ this -> _subscribers = [ ] ; foreach ( $ subscribers as $ subscriber ) { $ this -> addSubscriber ( $ subscriber ) ; } return $ this ; }
Sets the value of field subscribers.

@param array $subscribers - subscribers.

@return NodeInterface
Sets the value of field subscribers .