protected function assertMandatories(\stdClass $operation) { if (!property_exists($operation, 'value')) { throw new InvalidOperationException('Mandatory value property not set'); } }