I would need a class like:
<?php
class Replay{
private $id;
private $nickname;
public function setId($id_){
$this->id = $id_;
}
public function setNickname($nickname_){
$this->nickname = $nickname_;
}
public function getId(){
return $this->id;
}
public function getNickname(){
return $this->nickname;
}
}
?>
and than I would make another class replays that would hold an array of replay. (repository)
I don`t know how to declare the array of replay, if anyone has some examples? even more complex with sorting and other functions if now only the basic stuff.
<?php
class Replays{
private $number; //number of elements
...
?>