public function defineOwnProperty(
        Context $context,
        NameValue $key,
        Value $value,
        int $attributes = PropertyAttribute::NONE
    ): bool {
    }
public function defineOwnProperty(
        Context $context,
        NameValue $key,
        Value $value,
        int $attributes = PropertyAttribute::NONE
    ): bool {
    }
public function defineOwnProperty ( Context $ context , NameValue $ key , Value $ value , int $ attributes = PropertyAttribute :: NONE ) : bool { }
Implements DefineOwnProperty.

In general, CreateDataProperty will be faster, however, does not allow for specifying attributes.

@param Context   $context
@param NameValue $key
@param Value     $value
@param int       $attributes

@return bool
Implements DefineOwnProperty .