code: 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;
      }
docs: Set members
  
  @param array $members
  @return Collection