public function analyze(Model $model, $strategy = 'translatable')
    {
        $this->model = $model;

        $this->info = new ModelInformation([]);

        switch ($strategy) {

            case 'translatable':
                $this->analyzeForTranslatable();
                break;

            // @codeCoverageIgnoreStart
            default:
                throw new \UnexpectedValueException("Cannot handle translation strategy '{$strategy}");
        }

        return $this->info;
    }
public function analyze(Model $model, $strategy = 'translatable')
    {
        $this->model = $model;

        $this->info = new ModelInformation([]);

        switch ($strategy) {

            case 'translatable':
                $this->analyzeForTranslatable();
                break;

            // @codeCoverageIgnoreStart
            default:
                throw new \UnexpectedValueException("Cannot handle translation strategy '{$strategy}");
        }

        return $this->info;
    }
public function analyze ( Model $ model , $ strategy = 'translatable' ) { $ this -> model = $ model ; $ this -> info = new ModelInformation ( [ ] ) ; switch ( $ strategy ) { case 'translatable' : $ this -> analyzeForTranslatable ( ) ; break ; // @codeCoverageIgnoreStart default : throw new \ UnexpectedValueException ( "Cannot handle translation strategy '{$strategy}" ) ; } return $ this -> info ; }
Analyzes a model for its translations and returns relevant information.

@param Model  $model
@param string $strategy
@return ModelInformation
Analyzes a model for its translations and returns relevant information .