public static function get_declared_target_and_indicators_instances(array $definition): array {

        $target = static::get_target($definition['target']);

        $indicators = [];

        foreach ($definition['indicators'] as $indicatorname) {
            $indicator = static::get_indicator($indicatorname);
            $indicators[$indicator->get_id()] = $indicator;
        }

        return [$target, $indicators];
    }
public static function get_declared_target_and_indicators_instances(array $definition): array {

        $target = static::get_target($definition['target']);

        $indicators = [];

        foreach ($definition['indicators'] as $indicatorname) {
            $indicator = static::get_indicator($indicatorname);
            $indicators[$indicator->get_id()] = $indicator;
        }

        return [$target, $indicators];
    }
public static function get_declared_target_and_indicators_instances ( array $ definition ) : array { $ target = static :: get_target ( $ definition [ 'target' ] ) ; $ indicators = [ ] ; foreach ( $ definition [ 'indicators' ] as $ indicatorname ) { $ indicator = static :: get_indicator ( $ indicatorname ) ; $ indicators [ $ indicator -> get_id ( ) ] = $ indicator ; } return [ $ target , $ indicators ] ; }
Given a model definition, return actual target and indicators instances.

@param array $definition See {@link self::validate_models_declaration()} for the syntax.
@return array [0] => target instance, [1] => array of indicators instances
Given a model definition return actual target and indicators instances .