Why do we need to pass in the second parameter $data? Can't we just use $this->data['name'] directly in the getHireDateAttr() method?
The second parameter when calling this function is $data, otherwise how to get the name value
The second parameter when calling this function is $data, otherwise how to get the name value