blancks/fast-jsonpatch-php

View on GitHub
src/json/accessors/ObjectAccessorInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace blancks\JsonPatch\json\accessors;

interface ObjectAccessorInterface
{
    public function exists(object $document, string $key): bool;

    public function &get(object $document, string $key): mixed;

    public function set(object $document, string $key, mixed $value): mixed;

    public function delete(object $document, string $key): mixed;
}