<?php
class Domain {
private $accountId;
private $name;
private $created;
public function getAccountId() {
return $this->id;
}
public function getName() {
return $this->name;
}
public function getCreated() {
return $this->created;
}
}
$domain = new Domain();
if (!empty($hosting = $domain->getHosting())) {
$id = $hosting->getId();
}
?>