for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sl;
use Sl\Contracts\Foundation\StationInterface;
class Station implements StationInterface
{
/**
* Station's id.
*
* @var int
*/
private $id;
* Station's name.
* @var string
private $name;
* Create a new instance of Station.
* @param int $id
* @param string $name
public function __construct($id, $name = null)
$this->id = $id;
$this->name = $name;
}
* Get station's id.
* @return int
public function id()
return $this->id;
* Get station's name.
* @return string|null
public function name()
return $this->name;