Rs\Json\Patch\Document::__construct PHP Method

__construct() public method

public __construct ( string $patchDocument, integer $allowedPatchOperations = null )
$patchDocument string
$allowedPatchOperations integer
    public function __construct($patchDocument, $allowedPatchOperations = null)
    {
        $defaultPatchOperations = Add::APPLY | Copy::APPLY | Move::APPLY | Remove::APPLY | Replace::APPLY | Test::APPLY;
        $this->allowedPatchOperations = null !== $allowedPatchOperations ? $allowedPatchOperations : $defaultPatchOperations;
        $this->patchOperations = $this->extractPatchOperations($patchDocument);
    }