Completed
Push — master ( 9de2ae...02afd8 )
by Ronan
06:45
created

Siret::validate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace IsoCodes;
4
5
/**
6
 * Siret
7
 * En France, le SIRET (Système d’Identification du Répertoire des ETablissements) est un code Insee.
8
 * Il s'agit d'un identifiant géographique d'un établissement ou d'une entreprise.
9
 */
10
class Siret extends Siren implements IsoCodeInterface
11
{
12
    /**
13
     * SIRET validator.
14
     *
15
     * @param string $insee
16
     * @param int    $length
17
     *
18
     * @author ronan.guilloux
19
     *
20
     * @link   http://fr.wikipedia.org/wiki/SIRET
21
     *
22
     * @return bool
23
     */
24
    public static function validate($insee, $length = 14)
25
    {
26
        return parent::validate($insee, $length);
27
    }
28
}
29