Entity/Collection.php
public function setMembers($members)
    {
        if (!is_array($members) && !($members instanceof \ArrayAccess) && !($members instanceof \Traversable)) {
            // TODO Improve this
            throw new \Exception("The members of a Collection must be an array or an object implementing ArrayAccess.");
        }

        $this->members = $members;

        return $this;
    }
public function setMembers($members)
    {
        if (!is_array($members) && !($members instanceof \ArrayAccess) && !($members instanceof \Traversable)) {
            // TODO Improve this
            throw new \Exception("The members of a Collection must be an array or an object implementing ArrayAccess.");
        }

        $this->members = $members;

        return $this;
    }
public function setMembers ( $ members ) { if ( ! is_array ( $ members ) && ! ( $ members instanceof \ ArrayAccess ) && ! ( $ members instanceof \ Traversable ) ) { // TODO Improve this throw new \ Exception ( "The members of a Collection must be an array or an object implementing ArrayAccess." ) ; } $ this -> members = $ members ; return $ this ; }
Set members

@param array $members
@return Collection
Set members