public function accessorRelation(callable $getter, callable $setter): RelationUsingDefiner
    {
        return $this->defineRelationVia(new CustomAccessor($getter, $setter), function () {
            $this->verifyAllPropertiesMapped = false;
        });
    }
public function accessorRelation(callable $getter, callable $setter): RelationUsingDefiner
    {
        return $this->defineRelationVia(new CustomAccessor($getter, $setter), function () {
            $this->verifyAllPropertiesMapped = false;
        });
    }
public function accessorRelation ( callable $ getter , callable $ setter ) : RelationUsingDefiner { return $ this -> defineRelationVia ( new CustomAccessor ( $ getter , $ setter ) , function ( ) { $ this -> verifyAllPropertiesMapped = false ; } ) ; }
Defines a relationship via a custom accessor.

@param callable $getter
@param callable $setter

@return RelationUsingDefiner
@throws InvalidArgumentException
Defines a relationship via a custom accessor .