Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from celisflen-bers/patch-1
Browse files Browse the repository at this point in the history
Update Person.php
  • Loading branch information
celisflen-bers authored Sep 6, 2016
2 parents 8a2908f + 44dffea commit cccff69
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Faker/Provider/es_VE/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ class Person extends \Faker\Provider\Person
'Zaragoza', 'Zarate', 'Zavala', 'Zayas', 'Zelaya', 'Zepeda', 'Zúñiga', 'de Anda', 'de Jesús', 'Águilar', 'Álvarez', 'Ávalos', 'Ávila'
);

protected static $titleMale = array('Sr.', 'Dn.', 'Dr.', 'Lic.', 'Ing.');
protected static $titleMale = array('Sr.', 'Dn.', 'Dr.', 'Lcdo.', 'Ing.');

protected static $titleFemale = array('Sra.', 'Srita.', 'Dr.', 'Lic.', 'Ing.');
protected static $titleFemale = array('Sra.', 'Srita.', 'Dra.', 'Lcda.', 'Ing.');

private static $suffix = array('Hijo');

private static $nacionalityId = array('V', 'E');

/**
* @example 'Hijo'
Expand All @@ -147,11 +149,15 @@ public static function suffix()
}

/**
* Generate random national identification number. Ex V-8756432
* Generate random national identification number including nationalized foreigns. Ex V-8756432 or E-82803827
* @return string
*/
public function nationalId()
{
return 'V-'.$this->numberBetween(10000, 100000000);
$id = static::randomElement(static::$nacionalityId);
if ($id == 'V')
return $id.$this->numberBetween(10000, 100000000);
else
return $id.$this->numberBetween(80000000, 100000000);
}
}

0 comments on commit cccff69

Please sign in to comment.