protected function parse() { $matches = parent::parse(); $this->properties['gender'] = $this->properties['sequence'] % 2 ? 'male' : 'female'; $this->properties['century'] = $this->calculateCentury($matches['centuryHint']); $this->properties['birthday'] = $this->composeBirthday(); }
protected function parse() { $matches = parent::parse(); $this->properties['century'] = $this->calculateCentury(); $this->properties['gender'] = $matches['number'] % 2 ? 'male' : 'female'; $this->properties['d-number'] = $matches['day'] > 40; $this->properties['h-number'] = $matches['month'] > 40; $this->properties['birthday'] = $this->composeBirthday(); }
protected function parse() { $matches = parent::parse(); if (!$matches['centuryHint']) { $this->properties['centuryHint'] = '-'; } if ($this->properties['month'] >= 20) { $this->properties['type'] = 'organization'; $this->properties['century'] = '16'; $this->properties['form'] = $this->parseForm($matches['form']); } else { if ($this->properties['day'] >= 60) { $this->properties['temporary'] = true; } $this->properties['type'] = 'person'; $this->properties['century'] = $matches['century'] ?: $this->calculateCentury($matches['centuryHint']); $this->properties['gender'] = $this->properties['number'] % 2 ? 'male' : 'female'; $this->properties['birthday'] = $this->composeBirthday(); $this->properties['county'] = $this->parseCounty(); } }
protected function parse() { $matches = parent::parse(); $this->properties['gender'] = $matches['number'] % 2 ? 'male' : 'female'; $this->properties['century'] = $this->calculateCentury($matches['centuryHint']); }