/** * Compares current active resource with another one. * The comparison is made by comparing collection name, site and id values of the two active resources. * @param EActiveResource $resource resource to compare to * @return boolean whether the two active resources refer to the same service entry. */ public function equals($resource) { return $this->getSite() === $resource->getSite() && $this->getResource() === $resource->getResource() && $this->getId() === $resource->getId(); }