public function addSpouse($name = ($this->data['gender'] == MALE && empty($name)) ? 'Wife' : 'Husband', $suggest = false)
PHP is following for the above line:
syntax error, unexpected '$this' (T_VARIABLE)
$this
is not allowed in function parameter?
EDIT: function is inside a class