Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3830a9a74d
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (30 sloc) 0.483 kb
<?php
namespace mageekguy\atoum;
class locale
{
protected $value = null;
public function __construct($value = null)
{
if ($value !== null)
{
$this->set($value);
}
}
public function set($value)
{
$this->value = (string) $value;
return $this;
}
public function get()
{
return $this->value;
}
public function _($string)
{
return $string;
}
public function __($singular, $plural, $quantity)
{
return ($quantity <= 1 ? $singular : $plural);
}
}
Jump to Line
Something went wrong with that request. Please try again.