protected function createScripts(stdClass $scripts = null)
    {
        if (null !== $scripts) {
            $scriptsData = new ObjectAccess($scripts);
            $scripts = new ScriptConfiguration(
                $this->arrayize($scriptsData->getDefault('pre-install-cmd')),
                $this->arrayize($scriptsData->getDefault('post-install-cmd')),
                $this->arrayize($scriptsData->getDefault('pre-update-cmd')),
                $this->arrayize($scriptsData->getDefault('post-update-cmd')),
                $this->arrayize($scriptsData->getDefault('pre-status-cmd')),
                $this->arrayize($scriptsData->getDefault('post-status-cmd')),
                $this->arrayize($scriptsData->getDefault('pre-package-install')),
                $this->arrayize($scriptsData->getDefault('post-package-install')),
                $this->arrayize($scriptsData->getDefault('pre-package-update')),
                $this->arrayize($scriptsData->getDefault('post-package-update')),
                $this->arrayize($scriptsData->getDefault('pre-package-uninstall')),
                $this->arrayize($scriptsData->getDefault('post-package-uninstall')),
                $this->arrayize($scriptsData->getDefault('pre-autoload-dump')),
                $this->arrayize($scriptsData->getDefault('post-autoload-dump')),
                $this->arrayize($scriptsData->getDefault('post-root-package-install')),
                $this->arrayize($scriptsData->getDefault('post-create-project-cmd')),
                $scriptsData->data()
            );
        }

        return $scripts;
    }
protected function createScripts(stdClass $scripts = null)
    {
        if (null !== $scripts) {
            $scriptsData = new ObjectAccess($scripts);
            $scripts = new ScriptConfiguration(
                $this->arrayize($scriptsData->getDefault('pre-install-cmd')),
                $this->arrayize($scriptsData->getDefault('post-install-cmd')),
                $this->arrayize($scriptsData->getDefault('pre-update-cmd')),
                $this->arrayize($scriptsData->getDefault('post-update-cmd')),
                $this->arrayize($scriptsData->getDefault('pre-status-cmd')),
                $this->arrayize($scriptsData->getDefault('post-status-cmd')),
                $this->arrayize($scriptsData->getDefault('pre-package-install')),
                $this->arrayize($scriptsData->getDefault('post-package-install')),
                $this->arrayize($scriptsData->getDefault('pre-package-update')),
                $this->arrayize($scriptsData->getDefault('post-package-update')),
                $this->arrayize($scriptsData->getDefault('pre-package-uninstall')),
                $this->arrayize($scriptsData->getDefault('post-package-uninstall')),
                $this->arrayize($scriptsData->getDefault('pre-autoload-dump')),
                $this->arrayize($scriptsData->getDefault('post-autoload-dump')),
                $this->arrayize($scriptsData->getDefault('post-root-package-install')),
                $this->arrayize($scriptsData->getDefault('post-create-project-cmd')),
                $scriptsData->data()
            );
        }

        return $scripts;
    }
protected function createScripts ( stdClass $ scripts = null ) { if ( null !== $ scripts ) { $ scriptsData = new ObjectAccess ( $ scripts ) ; $ scripts = new ScriptConfiguration ( $ this -> arrayize ( $ scriptsData -> getDefault ( 'pre-install-cmd' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-install-cmd' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'pre-update-cmd' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-update-cmd' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'pre-status-cmd' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-status-cmd' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'pre-package-install' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-package-install' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'pre-package-update' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-package-update' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'pre-package-uninstall' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-package-uninstall' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'pre-autoload-dump' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-autoload-dump' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-root-package-install' ) ) , $ this -> arrayize ( $ scriptsData -> getDefault ( 'post-create-project-cmd' ) ) , $ scriptsData -> data ( ) ) ; } return $ scripts ; }
Create a script configuration object from the supplied raw value.

@param stdClass|null $scripts The raw script configuration data.

@return ScriptConfiguration|null The newly created script configuration object.
Create a script configuration object from the supplied raw value .