class Test {
private const ONE = 1;
private const TWO = 2;
...
}
class Test
{
....
public function all()
{
return [
self::ONE => 'один',
self::TWO => 'два'
]
}
public function getOne()
{
return self::ONE;
}
...
}