15 const ERROR_NOT_AUTHENTICATED = 3;
37 $this->service = $service;
46 if ($this->service->isAuthenticated) {
47 $this->
id = $this->service->id;
48 $this->name = $this->service->getAttribute(
'name');
50 $this->setState(
'id', $this->
id);
51 $this->setState(
'name', $this->name);
52 $this->setState(
'service', $this->service->serviceName);
54 $this->errorCode = self::ERROR_NONE;
57 $this->errorCode = self::ERROR_NOT_AUTHENTICATED;
59 return !$this->errorCode;