Skip to content

Commit

Permalink
Update Cnp.php
Browse files Browse the repository at this point in the history
  • Loading branch information
filipac committed Mar 2, 2015
1 parent 3b5a472 commit 51ff738
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Cnp.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@
class Cnp
{

/**
* @param $cnp
*
* @return bool
*/
public static function invalid($cnp)
{
return ! static::valid($cnp);
}


/**
* @param $p_cnp
*
* @return bool
*/
public static function valid($p_cnp)
{
// CNP must have 13 characters
Expand Down

0 comments on commit 51ff738

Please sign in to comment.