src/Analyse/Callback/Iterate/ThroughGetter.php
protected function goThroughMethodList(array $methodList)
    {
        $output = '';

        /** @var \ReflectionMethod $reflectionMethod */
        foreach ($methodList as $reflectionMethod) {
            // Back to level 0, we reset the deep counter.
            $this->deep = 0;

            // Now we have three possible outcomes:
            // 1.) We have an actual value
            // 2.) We got NULL as a value
            // 3.) We were unable to get any info at all.
            $comments = nl2br($this->commentAnalysis->getComment(
                $reflectionMethod,
                $this->parameters[static::PARAM_REF]
            ));

            /** @var Model $model */
            $model = $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                ->setName($reflectionMethod->getName())
                ->addToJson(static::META_METHOD_COMMENT, $comments);

            // We need to decide if we are handling static getters.
            if ($reflectionMethod->isStatic() === true) {
                $model->setConnectorType(Connectors::STATIC_METHOD);
            } else {
                $model->setConnectorType(Connectors::METHOD);
            }

            // Get ourselves a possible return value
            $output .= $this->retrievePropertyValue(
                $reflectionMethod,
                $this->dispatchEventWithModel(
                    __FUNCTION__ . static::EVENT_MARKER_END,
                    $model
                )
            );
        }

        return $output;
    }
protected function goThroughMethodList(array $methodList)
    {
        $output = '';

        /** @var \ReflectionMethod $reflectionMethod */
        foreach ($methodList as $reflectionMethod) {
            // Back to level 0, we reset the deep counter.
            $this->deep = 0;

            // Now we have three possible outcomes:
            // 1.) We have an actual value
            // 2.) We got NULL as a value
            // 3.) We were unable to get any info at all.
            $comments = nl2br($this->commentAnalysis->getComment(
                $reflectionMethod,
                $this->parameters[static::PARAM_REF]
            ));

            /** @var Model $model */
            $model = $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                ->setName($reflectionMethod->getName())
                ->addToJson(static::META_METHOD_COMMENT, $comments);

            // We need to decide if we are handling static getters.
            if ($reflectionMethod->isStatic() === true) {
                $model->setConnectorType(Connectors::STATIC_METHOD);
            } else {
                $model->setConnectorType(Connectors::METHOD);
            }

            // Get ourselves a possible return value
            $output .= $this->retrievePropertyValue(
                $reflectionMethod,
                $this->dispatchEventWithModel(
                    __FUNCTION__ . static::EVENT_MARKER_END,
                    $model
                )
            );
        }

        return $output;
    }
protected function goThroughMethodList ( array $ methodList ) { $ output = '' ; /** @var \ReflectionMethod $reflectionMethod */ foreach ( $ methodList as $ reflectionMethod ) { // Back to level 0, we reset the deep counter. $ this -> deep = 0 ; // Now we have three possible outcomes: // 1.) We have an actual value // 2.) We got NULL as a value // 3.) We were unable to get any info at all. $ comments = nl2br ( $ this -> commentAnalysis -> getComment ( $ reflectionMethod , $ this -> parameters [ static :: PARAM_REF ] ) ) ; /** @var Model $model */ $ model = $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Model' ) -> setName ( $ reflectionMethod -> getName ( ) ) -> addToJson ( static :: META_METHOD_COMMENT , $ comments ) ; // We need to decide if we are handling static getters. if ( $ reflectionMethod -> isStatic ( ) === true ) { $ model -> setConnectorType ( Connectors :: STATIC_METHOD ) ; } else { $ model -> setConnectorType ( Connectors :: METHOD ) ; } // Get ourselves a possible return value $ output .= $ this -> retrievePropertyValue ( $ reflectionMethod , $ this -> dispatchEventWithModel ( __FUNCTION__ . static :: EVENT_MARKER_END , $ model ) ) ; } return $ output ; }
Iterating through a list of reflection methods.

@param array $methodList
The list of methods we are going through, consisting of \ReflectionMethod

@return string
The generated DOM.
Iterating through a list of reflection methods .