PHP code example of avoo / elo
1. Go to this page and download the library: Download avoo/elo library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
avoo / elo example snippets
php
use Avoo\Elo\Model\EloPlayerInterface;
use Avoo\Elo\Model\EloUserInterface;
class EloPlayer implements EloPlayerInterface
{
/**
* @var integer
*/
protected $elo;
/**
* @var EloUserInterface $user
*/
protected $user;
/**
* {@inheritdoc}
*/
public function setElo($elo)
{
$this->elo = $elo;
return $this;
}
/**
* {@inheritdoc}
*/
public function getElo()
{
return $this->elo;
}
/**
* {@inheritdoc}
*/
public function setUser(EloUserInterface $user)
{
$this->user = $user;
return $this;
}
/**
* {@inheritdoc}
*/
public function getUser()
{
return $this->user;
}
//... Your own code
}