public function setAccessor(
        NameValue $name,
        callable $getter,
        callable $setter,
        $settings = AccessControl::DEFAULT_ACCESS,
        $attributes = PropertyAttribute::NONE,
        FunctionTemplate $receiver
    ) {
    }
public function setAccessor(
        NameValue $name,
        callable $getter,
        callable $setter,
        $settings = AccessControl::DEFAULT_ACCESS,
        $attributes = PropertyAttribute::NONE,
        FunctionTemplate $receiver
    ) {
    }
public function setAccessor ( NameValue $ name , callable $ getter , callable $ setter , $ settings = AccessControl :: DEFAULT_ACCESS , $ attributes = PropertyAttribute :: NONE , FunctionTemplate $ receiver ) { }
Sets an accessor on the object template.

Whenever the property with the given name is accessed on objects
created from this ObjectTemplate the getter and setter callbacks
are called instead of getting and setting the property directly
on the JavaScript object.

@param NameValue        $name
@param NameValue        $name       The name of the property for which an accessor is added.

@param callable         $getter     The callback to invoke when getting the property.
Callback signature should be (NameValue $property, PropertyCallbackInfo $info)

@param callable         $setter     The callback to invoke when setting the property.
Callback signature should be (NameValue $property, PropertyCallbackInfo $info)

@param int              $settings   Access control settings for the accessor.

@param int              $attributes The attributes of the property for which an accessor is added.

@param FunctionTemplate $receiver   The signature describes valid receivers for the accessor
and is used to perform implicit instance checks against them. If the
receiver is incompatible (i.e. is not an instance of the constructor as
defined by FunctionTemplate::HasInstance()), an implicit TypeError is
thrown and no callback is invoked.
Sets an accessor on the object template .