public function validates($options = [])
    {
        $success = true;
        foreach ($this as $entity) {
            if (!$entity->validates($options)) {
                $success = false;
            }
        }
        return $success;
    }
public function validates($options = [])
    {
        $success = true;
        foreach ($this as $entity) {
            if (!$entity->validates($options)) {
                $success = false;
            }
        }
        return $success;
    }
public function validates ( $ options = [ ] ) { $ success = true ; foreach ( $ this as $ entity ) { if ( ! $ entity -> validates ( $ options ) ) { $ success = false ; } } return $ success ; }
Validates the collection.

@param  array   $options Validates option.
@return boolean
Validates the collection .