for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jne;
use Jne\Contracts\Foundation\LocationInterface;
class Location implements LocationInterface
{
/**
* Location's name.
*
* @var string
*/
protected $name;
* Location's code.
protected $code;
* Create a new instance of Location.
* @param string $name
* @param string $code
public function __construct($name, $code)
$this->name = $name;
$this->code = $code;
}
* Get location's name.
* @return string
public function name()
return $this->name;
* Get location's code.
public function code()
return $this->code;