コード例 #1
0
 /**
  * @param SourceInterface $source
  * @return bool
  */
 public function equals(SourceInterface $source)
 {
     if (!$source instanceof FileSource) {
         return false;
     }
     if ($this->path !== $source->getPath()) {
         return false;
     }
     if ($this->line !== $source->getLine()) {
         return false;
     }
     if ($this->column !== $source->getColumn()) {
         return false;
     }
     return true;
 }