Repository URL to install this package:
|
Version:
6.2.3 ▾
|
<?php
/**
* Created by PhpStorm.
* User: eduarddezacastellano
* Date: 02/10/2018
* Time: 14:12
*/
namespace DigitalAscetic\GoogleApiClientBundle\Event;
use DigitalAscetic\GoogleApiClientBundle\Entity\IGoogleApiUser;
use Symfony\Contracts\EventDispatcher\Event;
class GoogleApiUserDisconnectEvent extends Event
{
const EVENT_NAME = 'ascetic_google_api_client.event.google_user.disconnect';
/** @var IGoogleApiUser */
private $googleApiUser;
/** @var string $host */
private $host;
/**
* GoogleUserDisconnectEvent constructor.
* @param IGoogleApiUser $googleUser
* @param string|null $host
*/
public function __construct(IGoogleApiUser $googleUser, string $host = null)
{
$this->googleApiUser = $googleUser;
$this->host = $host;
}
/**
* @return IGoogleApiUser
*/
public function getGoogleApiUser(): IGoogleApiUser
{
return $this->googleApiUser;
}
/**
* @return string
*/
public function getHost(): string
{
return $this->host;
}
/**
* @param string $host
*/
public function setHost(string $host): void
{
$this->host = $host;
}
}