function __construct($name, $pets = null, $friends = null) { $this->name = $name; $this->pets = $pets; $this->friends = $friends; }