[ create a new paste ] login | about

Link: http://codepad.org/txGvGsH8    [ raw code | output | fork ]

PHP, pasted on Oct 13:
<?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();
}
?>


Output:
1
2

Parse error: syntax error, unexpected '=', expecting ')' on line 21


Create a new paste based on this one


Comments: