src/Sulu/Component/Webspace/Manager/WebspaceCollection.php
public function getWebspace($key)
    {
        return array_key_exists($key, $this->webspaces) ? $this->webspaces[$key] : null;
    }
public function getWebspace($key)
    {
        return array_key_exists($key, $this->webspaces) ? $this->webspaces[$key] : null;
    }
public function getWebspace ( $ key ) { return array_key_exists ( $ key , $ this -> webspaces ) ? $ this -> webspaces [ $ key ] : null ; }
Returns the webspace with the given key.

@param $key string The key of the webspace

@return Webspace
Returns the webspace with the given key .