public function setApplication(ApplicationContract $application = null)
    {
        $this->application = $application;
        if ($application) {
            $this->setHelperSet($application->getHelperSet());
        } else {
            $this->helperSet = null;
        }
    }
public function setApplication(ApplicationContract $application = null)
    {
        $this->application = $application;
        if ($application) {
            $this->setHelperSet($application->getHelperSet());
        } else {
            $this->helperSet = null;
        }
    }
public function setApplication ( ApplicationContract $ application = null ) { $ this -> application = $ application ; if ( $ application ) { $ this -> setHelperSet ( $ application -> getHelperSet ( ) ) ; } else { $ this -> helperSet = null ; } }
Sets the ApplicationContract instance.

@param ApplicationContract|null $application
Sets the ApplicationContract instance .