public function withPostcommitHook(RiakPropertyFunction $hook)
    {
        $this->properties[BucketProperties::POSTCOMMIT_HOOKS][] = $hook->jsonSerialize();

        return $this;
    }
public function withPostcommitHook(RiakPropertyFunction $hook)
    {
        $this->properties[BucketProperties::POSTCOMMIT_HOOKS][] = $hook->jsonSerialize();

        return $this;
    }
public function withPostcommitHook ( RiakPropertyFunction $ hook ) { $ this -> properties [ BucketProperties :: POSTCOMMIT_HOOKS ] [ ] = $ hook -> jsonSerialize ( ) ; return $ this ; }
Add a post-commit hook.
The supplied Function must be an Erlang or Named JS function.

@param \Riak\Client\Core\Query\Func\RiakPropertyFunction $hook

@return \Riak\Client\Command\Bucket\Builder\StoreBucketPropertiesBuilder
Add a post - commit hook . The supplied Function must be an Erlang or Named JS function .