src/Analyse/Callback/Iterate/ThroughLargeArray.php
protected function handleValue($value, Model $model)
    {
        if (is_object($value) === true) {
            // We will not go too deep here, and say only what it is.
            $model->setType(static::TYPE_SIMPLE_CLASS)
                ->setNormal(get_class($value));

            return $this->pool->render->renderSingleChild($model);
        }

        if (is_array($value) === true) {
            // Adding another array to the output may be as bad as a
            // complete object analysis.
            $model->setType(static::TYPE_SIMPLE_ARRAY)
                ->setNormal('count: ' . count($value));

                return $this->pool->render->renderSingleChild($model);
        }

        // We handle the simple type normally with the analysis hub.
        return $this->pool->routing->analysisHub($model->setData($value));
    }
protected function handleValue($value, Model $model)
    {
        if (is_object($value) === true) {
            // We will not go too deep here, and say only what it is.
            $model->setType(static::TYPE_SIMPLE_CLASS)
                ->setNormal(get_class($value));

            return $this->pool->render->renderSingleChild($model);
        }

        if (is_array($value) === true) {
            // Adding another array to the output may be as bad as a
            // complete object analysis.
            $model->setType(static::TYPE_SIMPLE_ARRAY)
                ->setNormal('count: ' . count($value));

                return $this->pool->render->renderSingleChild($model);
        }

        // We handle the simple type normally with the analysis hub.
        return $this->pool->routing->analysisHub($model->setData($value));
    }
protected function handleValue ( $ value , Model $ model ) { if ( is_object ( $ value ) === true ) { // We will not go too deep here, and say only what it is. $ model -> setType ( static :: TYPE_SIMPLE_CLASS ) -> setNormal ( get_class ( $ value ) ) ; return $ this -> pool -> render -> renderSingleChild ( $ model ) ; } if ( is_array ( $ value ) === true ) { // Adding another array to the output may be as bad as a // complete object analysis. $ model -> setType ( static :: TYPE_SIMPLE_ARRAY ) -> setNormal ( 'count: ' . count ( $ value ) ) ; return $ this -> pool -> render -> renderSingleChild ( $ model ) ; } // We handle the simple type normally with the analysis hub. return $ this -> pool -> routing -> analysisHub ( $ model -> setData ( $ value ) ) ; }
Starting the analysis of the value.

@param mixed $value
The value from the current array position.
@param Model $model
The so far prepared model.
@return string
The generated markup
Starting the analysis of the value .