PHP5 example code
Back to Professional PHP I am trying (finally) to understand the topics and I am running the (downloaded) examples:
Errors in: ch02 sampleCode.php
A $at wrong place:
public function assignToBand(Band $band) {
//error! $this->$bandReference = $band;
$this->bandReference = $band;
}
and at several places the interface definitions do not correspond to their implementations, example:
public function addInstrument(Instrument $instrument);
//error public function addInstrument();
|