This is the creation of the class
Its about an example using the name dog but im working on some aplication and i will change this data for something diferent next days, if you could help me and told me if its ok i will apreciate it.
class Dog extends Connection
{
private $dogId;
private $name;
private $albumId;
private $mediaTypeId;
private $genreId;
private $composer;
private $miliseconds;
private $bytes;
private $unitPrice;
public function __construct($_dogId, $_name, $_albumId, $_mediaTypeId, $_genreId, $_composer, $_miliseconds, $_bytes, $_unitPrice)
{
$this->dogId = $_dogId;
$this->name = $_name;
$this->albumId = $_albumId;
$this->mediaTypeId = $_mediaTypeId;
$this->genreId = $_genreId;
$this->composer = $_composer;
$this->miliseconds = $_miliseconds;
$this->bytes = $_bytes;
$this->unitPrice = $_unitPrice;
}
public function getDogName(){
return $this->name;
}
public function getDogComposer(){
return $this->composer;
}
public function getUnitPrice(){
return $this->unitPrice;
}
public function getDuration(){
}
}```