public function sameValueAs(ValueObjectInterface $date)
    {
        if (false === Util::classEquals($this, $date)) {
            return false;
        }

        return $this->getYear()->sameValueAs($date->getYear()) &&
               $this->getMonth()->sameValueAs($date->getMonth()) &&
               $this->getDay()->sameValueAs($date->getDay());
    }
public function sameValueAs(ValueObjectInterface $date)
    {
        if (false === Util::classEquals($this, $date)) {
            return false;
        }

        return $this->getYear()->sameValueAs($date->getYear()) &&
               $this->getMonth()->sameValueAs($date->getMonth()) &&
               $this->getDay()->sameValueAs($date->getDay());
    }
public function sameValueAs ( ValueObjectInterface $ date ) { if ( false === Util :: classEquals ( $ this , $ date ) ) { return false ; } return $ this -> getYear ( ) -> sameValueAs ( $ date -> getYear ( ) ) && $ this -> getMonth ( ) -> sameValueAs ( $ date -> getMonth ( ) ) && $ this -> getDay ( ) -> sameValueAs ( $ date -> getDay ( ) ) ; }
Tells whether two Date are equal by comparing their values

@param  ValueObjectInterface $date
@return bool
Tells whether two Date are equal by comparing their values