public function addLocalVariable($localVariable)
    {
        $varName = $localVariable;

        if (strpos($varName, '$') === 0) {
            $varName = substr($localVariable, 1);
        }

        if (in_array($varName, $this->localVariables) === false) {
            $this->localVariables[] = $varName;
        }
    }
public function addLocalVariable($localVariable)
    {
        $varName = $localVariable;

        if (strpos($varName, '$') === 0) {
            $varName = substr($localVariable, 1);
        }

        if (in_array($varName, $this->localVariables) === false) {
            $this->localVariables[] = $varName;
        }
    }
public function addLocalVariable ( $ localVariable ) { $ varName = $ localVariable ; if ( strpos ( $ varName , '$' ) === 0 ) { $ varName = substr ( $ localVariable , 1 ) ; } if ( in_array ( $ varName , $ this -> localVariables ) === false ) { $ this -> localVariables [ ] = $ varName ; } }
Add a local variable so that any usage of it doesn't
trigger trying to fetch it from the ViewModel
@param $localVariable
Add a local variable so that any usage of it doesn t trigger trying to fetch it from the ViewModel