You are here

public function Individual::setSex in CRM Core 8.2

Sets sex field of individual.

Parameters

string $sex: Sex field.

Overrides IndividualInterface::setSex

File

modules/crm_core_contact/src/Entity/Individual.php, line 201

Class

Individual
CRM Individual Entity Class.

Namespace

Drupal\crm_core_contact\Entity

Code

public function setSex($sex) {
  $this
    ->set('sex', $sex);
  return $this;
}