public function get(string $key)
    {
        $hash =  self::findFirst([
            'conditions' => "{$this->settingsKey} = ?0 and key = ?1",
            'bind' => [$this->getSettingsKey(), $key]
        ]);

        if ($hash) {
            return $hash->value;
        }

        return null;
    }
public function get(string $key)
    {
        $hash =  self::findFirst([
            'conditions' => "{$this->settingsKey} = ?0 and key = ?1",
            'bind' => [$this->getSettingsKey(), $key]
        ]);

        if ($hash) {
            return $hash->value;
        }

        return null;
    }
public function get ( string $ key ) { $ hash = self :: findFirst ( [ 'conditions' => "{$this->settingsKey} = ?0 and key = ?1" , 'bind' => [ $ this -> getSettingsKey ( ) , $ key ] ] ) ; if ( $ hash ) { return $ hash -> value ; } return null ; }
Get the vehicle settings

@param  Vehicle $vehicle [description]
@param  string  $key     [description]
@return mixed
Get the vehicle settings