protected function addGlobalCode($globalCode, $priority = PHP_INT_MAX) {
        if (!empty($globalCode)) {
            $code = new Code();
            $code->setCode($globalCode)
                 ->setPriority($priority);
            $this->builder->addGlobalCode($code);
        }
        return $this;
    }
protected function addGlobalCode($globalCode, $priority = PHP_INT_MAX) {
        if (!empty($globalCode)) {
            $code = new Code();
            $code->setCode($globalCode)
                 ->setPriority($priority);
            $this->builder->addGlobalCode($code);
        }
        return $this;
    }
protected function addGlobalCode ( $ globalCode , $ priority = PHP_INT_MAX ) { if ( ! empty ( $ globalCode ) ) { $ code = new Code ( ) ; $ code -> setCode ( $ globalCode ) -> setPriority ( $ priority ) ; $ this -> builder -> addGlobalCode ( $ code ) ; } return $ this ; }
Adds global code to the builder.
@param string $globalCode The global code.
@param int $priority The priority of the code. Defaults to PHP_INT_MAX to add the code to the end of the script.
@return $this Implementing fluent interface.
Adds global code to the builder .