code: public function equals($compare)
      {
          if ($compare instanceof self) {
              return (get_class($compare) === get_class($this) && $compare->name() === $this->name);
          }
  
          return false;
      }
docs: checks whether a value is equal to the class
  
  @XmlIgnore
  @param   mixed  $compare
  @return  bool