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