コード例 #1
0
 /**
  * @param Leg $other
  * @return bool
  */
 public function sameValueAs(Leg $other)
 {
     if ($this->loadLocation() !== $other->loadLocation()) {
         return false;
     }
     if ($this->unloadLocation() !== $other->unloadLocation()) {
         return false;
     }
     if ($this->loadTime() != $other->loadTime()) {
         return false;
     }
     if ($this->unloadTime() != $other->unloadTime()) {
         return false;
     }
     return true;
 }