/** * cutting pesel, day,month,year */ public function __construct($pesel) { parent::__construct($pesel); $this->year = $this->cutPesel(0, 2); $this->month = $this->cutPesel(2, 2); $this->day = $this->cutPesel(4, 2); }
public function __construct($pesel) { parent::__construct($pesel); $this->gender = $this->cutPesel(9, 1); }