Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Faker\Calculator;
4
 
5
/**
6
 * @deprecated moved to tr_TR\Person, use {@link \Faker\Provider\tr_TR\Person}.
7
 * @see \Faker\Provider\tr_TR\Person
8
 */
9
class TCNo
10
{
11
    /**
12
     * Generates Turkish Identity Number Checksum
13
     * Gets first 9 digit as prefix and calculates checksum
14
     *
15
     * https://en.wikipedia.org/wiki/Turkish_Identification_Number
16
     *
17
     * @param string $identityPrefix
18
     *
19
     * @return string Checksum (two digit)
20
     *
21
     * @deprecated use {@link \Faker\Provider\tr_TR\Person::tcNoChecksum()} instead
22
     * @see \Faker\Provider\tr_TR\Person::tcNoChecksum()
23
     */
24
    public static function checksum($identityPrefix)
25
    {
26
        return \Faker\Provider\tr_TR\Person::tcNoChecksum($identityPrefix);
27
    }
28
 
29
    /**
30
     * Checks whether a TCNo has a valid checksum
31
     *
32
     * @param string $tcNo
33
     *
34
     * @return bool
35
     *
36
     * @deprecated use {@link \Faker\Provider\tr_TR\Person::tcNoIsValid()} instead
37
     * @see \Faker\Provider\tr_TR\Person::tcNoIsValid()
38
     */
39
    public static function isValid($tcNo)
40
    {
41
        return \Faker\Provider\tr_TR\Person::tcNoIsValid($tcNo);
42
    }
43
}