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

Siret   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
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