src/Analyse/Callback/Analyse/Objects/Constants.php
public function callMe()
    {
        $output = $this->dispatchStartEvent();

        // This is actually an array, we ara analysing. But We do not want to render
        // an array, so we need to process it like the return from an iterator.
        /** @var \ReflectionClass $ref */
        $ref = $this->parameters[static::PARAM_REF];
        $refConst = $ref->getConstants();

        if (empty($refConst) === true) {
            // Nothing to see here, return an empty string.
            return '';
        }

        // We've got some values, we will dump them.
        $classname = '\\' . $ref->getName();
        return $output . $this->pool->render->renderExpandableChild(
            $this->dispatchEventWithModel(
                static::EVENT_MARKER_ANALYSES_END,
                $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                    ->setName('Constants')
                    ->setType(static::TYPE_INTERNALS)
                    ->setIsMetaConstants(true)
                    ->addParameter(static::PARAM_DATA, $refConst)
                    ->addParameter(static::PARAM_CLASSNAME, $classname)
                    ->injectCallback(
                        $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Callback\\Iterate\\ThroughConstants')
                    )
            )
        );
    }
public function callMe()
    {
        $output = $this->dispatchStartEvent();

        // This is actually an array, we ara analysing. But We do not want to render
        // an array, so we need to process it like the return from an iterator.
        /** @var \ReflectionClass $ref */
        $ref = $this->parameters[static::PARAM_REF];
        $refConst = $ref->getConstants();

        if (empty($refConst) === true) {
            // Nothing to see here, return an empty string.
            return '';
        }

        // We've got some values, we will dump them.
        $classname = '\\' . $ref->getName();
        return $output . $this->pool->render->renderExpandableChild(
            $this->dispatchEventWithModel(
                static::EVENT_MARKER_ANALYSES_END,
                $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                    ->setName('Constants')
                    ->setType(static::TYPE_INTERNALS)
                    ->setIsMetaConstants(true)
                    ->addParameter(static::PARAM_DATA, $refConst)
                    ->addParameter(static::PARAM_CLASSNAME, $classname)
                    ->injectCallback(
                        $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Callback\\Iterate\\ThroughConstants')
                    )
            )
        );
    }
public function callMe ( ) { $ output = $ this -> dispatchStartEvent ( ) ; // This is actually an array, we ara analysing. But We do not want to render // an array, so we need to process it like the return from an iterator. /** @var \ReflectionClass $ref */ $ ref = $ this -> parameters [ static :: PARAM_REF ] ; $ refConst = $ ref -> getConstants ( ) ; if ( empty ( $ refConst ) === true ) { // Nothing to see here, return an empty string. return '' ; } // We've got some values, we will dump them. $ classname = '\\' . $ ref -> getName ( ) ; return $ output . $ this -> pool -> render -> renderExpandableChild ( $ this -> dispatchEventWithModel ( static :: EVENT_MARKER_ANALYSES_END , $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Model' ) -> setName ( 'Constants' ) -> setType ( static :: TYPE_INTERNALS ) -> setIsMetaConstants ( true ) -> addParameter ( static :: PARAM_DATA , $ refConst ) -> addParameter ( static :: PARAM_CLASSNAME , $ classname ) -> injectCallback ( $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Callback\\Iterate\\ThroughConstants' ) ) ) ) ; }
Dumps the constants of a class,

@return string
The generated markup.
Dumps the constants of a class