private function getService($class)
    {
        if (!array_key_exists($class, $this->services)) {
            $this->services[$class] = new $class($this->getClient(), $this->getLogger());
        }

        return $this->services[$class];
    }
private function getService($class)
    {
        if (!array_key_exists($class, $this->services)) {
            $this->services[$class] = new $class($this->getClient(), $this->getLogger());
        }

        return $this->services[$class];
    }
private function getService ( $ class ) { if ( ! array_key_exists ( $ class , $ this -> services ) ) { $ this -> services [ $ class ] = new $ class ( $ this -> getClient ( ) , $ this -> getLogger ( ) ) ; } return $ this -> services [ $ class ] ; }
Return service singleton.

@param string $class

@return Service
Return service singleton .