class CdProduct { public $playLength; public $title; public $producerMainName; public $producerFirstName; public $price; public function __construct( string $title, string $firstName, string $mainName, float $price, int $playLength ){ $this->title = $title; $this->producerFirstName = $firstName; $this->producerMainName = $mainName; $this->price = $price; $this->playLength = $playLength; } public function getPlayLength(): int { return $this->playLength; } public function getSummaryLine(): string { $base = "{$this->title} ( {$this->producerMainName}, "; $base .= "{$this->producerFirstName} )"; $base .= ": playing time - {$this->playLengh}"; return $base; } public function getProducer(): string { return $this->producerFirstName . " " . $this->producerMainName; } }