src/Camunda/Service/TaskService.php
public static function toModel(stdClass $object)
    {
        $model = static::baseToModel($object);

        // @todo Parse everything that is embedded
        if (isset($object->_embedded->identityLink)) {
            foreach ($object->_embedded->identityLink as $identity) {
                if ('candidate' === $identity->type) {
                    $model->setCandidateGroup($identity->groupId);
                }
            }
        }

        return $model;
    }
public static function toModel(stdClass $object)
    {
        $model = static::baseToModel($object);

        // @todo Parse everything that is embedded
        if (isset($object->_embedded->identityLink)) {
            foreach ($object->_embedded->identityLink as $identity) {
                if ('candidate' === $identity->type) {
                    $model->setCandidateGroup($identity->groupId);
                }
            }
        }

        return $model;
    }
public static function toModel ( stdClass $ object ) { $ model = static :: baseToModel ( $ object ) ; // @todo Parse everything that is embedded if ( isset ( $ object -> _embedded -> identityLink ) ) { foreach ( $ object -> _embedded -> identityLink as $ identity ) { if ( 'candidate' === $ identity -> type ) { $ model -> setCandidateGroup ( $ identity -> groupId ) ; } } } return $ model ; }
Cast object to model

@param \stdClass $object
@return \Ds\Component\Camunda\Model\Model
@throws \LogicException
Cast object to model