public function contains(ValueObjectInterface $object)
    {
        foreach ($this->items as $item) {
            if ($item->sameValueAs($object)) {
                return true;
            }
        }

        return false;
    }
public function contains(ValueObjectInterface $object)
    {
        foreach ($this->items as $item) {
            if ($item->sameValueAs($object)) {
                return true;
            }
        }

        return false;
    }
public function contains ( ValueObjectInterface $ object ) { foreach ( $ this -> items as $ item ) { if ( $ item -> sameValueAs ( $ object ) ) { return true ; } } return false ; }
Tells whether the Collection contains an object

@param  ValueObjectInterface $object
@return bool
Tells whether the Collection contains an object