Fix tabs to spaces

This commit is contained in:
Dennis Eichhorn 2017-10-27 18:23:35 +02:00
parent 302639fc43
commit 7a3243e679

View File

@ -31,73 +31,73 @@ use Modules\Calendar\Models\Calendar;
*/ */
class Profile class Profile
{ {
private $id = 0; private $id = 0;
private $image = null; private $image = null;
private $birthday = null; private $birthday = null;
private $account = null; private $account = null;
private $location = []; private $location = [];
private $calendar = null; private $calendar = null;
public function __construct() public function __construct()
{ {
$this->image = new NullMedia(); $this->image = new NullMedia();
$this->birthday = new \DateTime('now'); $this->birthday = new \DateTime('now');
$this->account = new Account(); $this->account = new Account();
$this->calendar = new Calendar(); $this->calendar = new Calendar();
} }
public function getId() : int public function getId() : int
{ {
return $this->id; return $this->id;
} }
public function getLocation() : array public function getLocation() : array
{ {
return $this->location; return $this->location;
} }
public function addLocation(Location $location) public function addLocation(Location $location)
{ {
$this->location[] = $location; $this->location[] = $location;
} }
public function getCalendar() public function getCalendar()
{ {
return $this->calendar; return $this->calendar;
} }
public function getImage() : Media public function getImage() : Media
{ {
return $this->image; return $this->image;
} }
public function setImage(Media $image) /* : void */ public function setImage(Media $image) /* : void */
{ {
$this->image = $image; $this->image = $image;
} }
public function setAccount(Account $account) /* : void */ public function setAccount(Account $account) /* : void */
{ {
$this->account = $account; $this->account = $account;
} }
public function getAccount() : Account public function getAccount() : Account
{ {
return $this->account ?? new NullAccount(); return $this->account ?? new NullAccount();
} }
public function setBirthday(\DateTime $birthday) /* : void */ public function setBirthday(\DateTime $birthday) /* : void */
{ {
$this->birthday = $birthday; $this->birthday = $birthday;
} }
public function getBirthday() : \DateTime public function getBirthday() : \DateTime
{ {
return $this->birthday; return $this->birthday;
} }
} }