for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sokil\IsoCodes\Database\Scripts;
use Sokil\IsoCodes\Database\Scripts;
class Script
{
/**
* @var string
*/
private $name;
private $localName;
private $alpha4;
* @var int
private $numericCode;
* Script constructor.
* @param string $name
* @param string $alpha4
* @param int $numericCode
public function __construct(
$name,
$alpha4,
$numericCode
) {
$this->name = $name;
$this->alpha4 = $alpha4;
$this->numericCode = $numericCode;
}
* @return string
public function getName()
return $this->name;
public function getLocalName()
if ($this->localName === null) {
$this->localName = dgettext(
Scripts::getISONumber(),
$this->name
);
return $this->localName;
public function getAlpha4()
return $this->alpha4;
* @return int
public function getNumericCode()
return $this->numericCode;