Faker\Provider\kk_KZ\Company::businessIdentificationNumber PHP Method

businessIdentificationNumber() public static method

National Business Identification Numbers
public static businessIdentificationNumber ( DateTime $registrationDate = null ) : string
$registrationDate DateTime
return string 12 digits, like 150140000019
    public static function businessIdentificationNumber(\DateTime $registrationDate = null)
    {
        if (!$registrationDate) {
            $registrationDate = \Faker\Provider\DateTime::dateTimeThisYear();
        }
        $dateAsString = $registrationDate->format('ym');
        $legalEntityType = (string) static::numberBetween(4, 6);
        $legalEntityAdditionalType = (string) static::numberBetween(0, 3);
        $randomDigits = (string) static::numerify('######');
        return $dateAsString . $legalEntityType . $legalEntityAdditionalType . $randomDigits;
    }