public function onConstruct($app)
    {
        //if not null
        if (!is_null($app)) {
            $key = $this->settingsKey;
            $this->$key = $app;
        }
    }
public function onConstruct($app)
    {
        //if not null
        if (!is_null($app)) {
            $key = $this->settingsKey;
            $this->$key = $app;
        }
    }
public function onConstruct ( $ app ) { //if not null if ( ! is_null ( $ app ) ) { $ key = $ this -> settingsKey ; $ this -> $ key = $ app ; } }
Set the current hash id to work with the obj

@param  mixed $app
@return void
Set the current hash id to work with the obj