Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ntokozo Ncube
17,435 PointsStep 1: In the Client.php file, create a new class named "Client" that takes it's initial abilities and attributes from
Where am I missing it here?
<?php
//do not modify this file
class User {
protected $name;
protected $title;
public function __construct($name = null, $title = null) {
$this->name = $name;
$this->title = $title;
}
public function __toString() {
return $this->getSalutation();
}
public function getSalutation() {
return $this->title . " " . $this->name;
}
public function getName() {
return $this->name;
}
public function setName($name) {
$this->name = $name;
}
public function getTitle() {
return $this->title;
}
public function setTitle($title) {
$this->title = $title;
}
}
<?php
//do not modify this file
class Developer extends User
{
protected $skills;
public function getSkills() {
return $this->skills;
}
public function setSkills($array) {
$this->skills = $array;
}
public function displayUserSkills() {
return $this->getName() . ' has the following skills: ' . implode(", ", $this->skills);
}
}
<?php
//add code for Client class
class Client extends User {
private $company = ‘’;
public function getCompany()
{
return $this->company;
}
public function setCompany($company)
{
$this->company = $company
}
}
1 Answer

Thierry Henrich
2,073 Pointsplease answer better
Ntokozo Ncube
17,435 PointsNtokozo Ncube
17,435 PointsI have figured out the problem and have sorted it out
My Code ended up like:
<?php //add code for Client class class Client extends User { protected $company;
public function getcompany() { return $this->company; }
public function setcompany($array) { $this->company = $array; }
public function displayUsercompany() { return $this->getName() . ' has the following skills: ' . implode(", ", $this->company); } }