Newscoop\Entity\Resource::sameAs PHP Method

sameAs() public method

The equality is done using the resource path.
public sameAs ( Resource $other ) : boolean
$other Resource The resource to compare with.
return boolean True if the resources are considered eqaul, false otherwise.
    public function sameAs(Resource $other)
    {
        return $this->isSame($other);
    }

Usage Example

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