i have gone through this line of code severally and i dont know why its throwing the error
in my AppModel.php i have this function:
public function getErrorMessage($key) {
    return $this->Message->get('validation.' . get_class($this) . '.' .     $key);
} 
Then in Employee Model validation code i have this:
public $validate = array(
    'payroll_no' => array(
        'numeric' => array(
            'rule' => array('naturalNumber'),
            'message' => $this->getErrorMessage('numeric')
        )
)
am getting error :
syntax error, unexpected '$this' (T_VARIABLE) 
on the line where am setting the message
am using php 5.5.3 on ubuntu and cakephp 2.5.4
