Newscoop\Entity\Resource::isSame PHP Метод

isSame() публичный Метод

The equality is done using the resource path.
public isSame ( Resource $other ) : boolean
$other Resource The resource to compare with.
Результат boolean True if the resources are considered eqaul, false otherwise.
    function isSame(Resource $other)
    {
        if ($other !== NULL) {
            return $this->path === $other->path;
        }
        return FALSE;
    }

Usage Example

 public function isSame(\Newscoop\Entity\Resource $other)
 {
     $this->__load();
     return parent::isSame($other);
 }