public function getClient()
    {
        if ($this->client instanceof ClientEntity) {
            return $this->client;
        }

        $this->client = $this->server->getClientStorage()->getBySession($this);

        return $this->client;
    }
public function getClient()
    {
        if ($this->client instanceof ClientEntity) {
            return $this->client;
        }

        $this->client = $this->server->getClientStorage()->getBySession($this);

        return $this->client;
    }
public function getClient ( ) { if ( $ this -> client instanceof ClientEntity ) { return $ this -> client ; } $ this -> client = $ this -> server -> getClientStorage ( ) -> getBySession ( $ this ) ; return $ this -> client ; }
Return the session client

@return \League\OAuth2\Server\Entity\ClientEntity
Return the session client