public function __construct() { if (!Client::getAccess()) { throw new AdapterException("Could not access to the data service"); } else { return $this; } }