public function createScript()
    {
        if ($this->script) {
            return $this->script;
        }
        $script = new Script();
        $this->setScript($script);
        return $this->script;
    }
public function createScript()
    {
        if ($this->script) {
            return $this->script;
        }
        $script = new Script();
        $this->setScript($script);
        return $this->script;
    }
public function createScript ( ) { if ( $ this -> script ) { return $ this -> script ; } $ script = new Script ( ) ; $ this -> setScript ( $ script ) ; return $ this -> script ; }
Create and assign a new Script if necessary

@api
@return Script
Create and assign a new Script if necessary