Rs\Json\Patch\Operations\Copy::assertMandatories PHP Method

assertMandatories() protected method

Guard the mandatory operation property
protected assertMandatories ( stdClass $operation )
$operation stdClass The operation structure.
    protected function assertMandatories(\stdClass $operation)
    {
        if (!property_exists($operation, 'from')) {
            throw new InvalidOperationException('Mandatory from property not set');
        }
    }