Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/adapter/PhutilEmptyAuthAdapter.php
12256 views
1
<?php
2
3
/**
4
* Empty authentication adapter with no logic.
5
*
6
* This adapter can be used when you need an adapter for some technical reason
7
* but it doesn't make sense to put logic inside it.
8
*/
9
final class PhutilEmptyAuthAdapter extends PhutilAuthAdapter {
10
11
private $accountID;
12
private $adapterType;
13
private $adapterDomain;
14
15
public function setAdapterDomain($adapter_domain) {
16
$this->adapterDomain = $adapter_domain;
17
return $this;
18
}
19
20
public function getAdapterDomain() {
21
return $this->adapterDomain;
22
}
23
24
public function setAdapterType($adapter_type) {
25
$this->adapterType = $adapter_type;
26
return $this;
27
}
28
29
public function getAdapterType() {
30
return $this->adapterType;
31
}
32
33
public function setAccountID($account_id) {
34
$this->accountID = $account_id;
35
return $this;
36
}
37
38
public function getAccountID() {
39
return $this->accountID;
40
}
41
42
}
43
44