Library/ClassDefinition.php
public function addStaticInitMethod(StatementsBlock $statementsBlock)
    {
        $initClassName = $this->getCNamespace().'_'.$this->getName();

        $classMethod = new ClassMethod(
            $this,
            ['internal'],
            'zephir_init_static_properties_'.$initClassName,
            null,
            $statementsBlock
        );

        $classMethod->setIsInitializer(true);
        $classMethod->setIsStatic(true);
        $this->addMethod($classMethod);
    }
public function addStaticInitMethod(StatementsBlock $statementsBlock)
    {
        $initClassName = $this->getCNamespace().'_'.$this->getName();

        $classMethod = new ClassMethod(
            $this,
            ['internal'],
            'zephir_init_static_properties_'.$initClassName,
            null,
            $statementsBlock
        );

        $classMethod->setIsInitializer(true);
        $classMethod->setIsStatic(true);
        $this->addMethod($classMethod);
    }
public function addStaticInitMethod ( StatementsBlock $ statementsBlock ) { $ initClassName = $ this -> getCNamespace ( ) . '_' . $ this -> getName ( ) ; $ classMethod = new ClassMethod ( $ this , [ 'internal' ] , 'zephir_init_static_properties_' . $ initClassName , null , $ statementsBlock ) ; $ classMethod -> setIsInitializer ( true ) ; $ classMethod -> setIsStatic ( true ) ; $ this -> addMethod ( $ classMethod ) ; }
Creates the static initialization method.

@param StatementsBlock $statementsBlock
Creates the static initialization method .