public function isOwnedBy(Model $owner)
    {
        if ( ! $this->hasOwner())
        {
            return false;
        }

        return ($owner->getKey() === $this->owner->getKey());
    }
public function isOwnedBy(Model $owner)
    {
        if ( ! $this->hasOwner())
        {
            return false;
        }

        return ($owner->getKey() === $this->owner->getKey());
    }
public function isOwnedBy ( Model $ owner ) { if ( ! $ this -> hasOwner ( ) ) { return false ; } return ( $ owner -> getKey ( ) === $ this -> owner -> getKey ( ) ) ; }
Checks if the given is the owner

@param Model $owner
@return bool
Checks if the given is the owner