class A {
public function someAction()
{
if ($this->getSomething() === B.SOME_CONSTANT) {
...
}
public function someAnotherAction()
{
...
if ($this->getSomething() === B.SOME_CONSTANT) {
...
}
...
}