forked from madeny/lhttps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDomain.php
More file actions
31 lines (25 loc) · 514 Bytes
/
Domain.php
File metadata and controls
31 lines (25 loc) · 514 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace Madeny\lhttps;
class Domain
{
protected $domainOne;
protected $domainTwo;
public function getDomainOne()
{
$this->domainOne = trim(preg_replace('/\s\s+/', ' ', $this->domainOne));
return $this->domainOne;
}
public function getDomainTwo()
{
$this->domainTwo = 'www.'.$this->domainOne;
return $this->domainTwo;
}
public function setDomainOne($domainOne)
{
if (!$domainOne) {
$this->domainOne = "localhost";
}else{
$this->domainOne = $domainOne;
}
}
}