public function containsSubset(Set $set)
    {
        if (count($set->getValue()) > count($this->getValue())) {
            return false;
        }

        return array_intersect($set->getValue(), $this->getValue()) == $set->getValue();
    }
public function containsSubset(Set $set)
    {
        if (count($set->getValue()) > count($this->getValue())) {
            return false;
        }

        return array_intersect($set->getValue(), $this->getValue()) == $set->getValue();
    }
public function containsSubset ( Set $ set ) { if ( count ( $ set -> getValue ( ) ) > count ( $ this -> getValue ( ) ) ) { return false ; } return array_intersect ( $ set -> getValue ( ) , $ this -> getValue ( ) ) == $ set -> getValue ( ) ; }
Contains Subset comparison.

@param Set $set

@return bool
Contains Subset comparison .