Apply contribution guidelines to "AbstractSearcher"

Refactor `AbstractSearcher` class and its children. Also most of the
unnecessary logic that was on `AbstractSearcher` was put back into `In`
class.

This commit also updates all "SubdivisionCode" rules.

The script used to create the classes can be found on:
https://gist.github.com/henriquemoody/ec404f994a87b18c7771
This commit is contained in:
Henrique Moody 2018-01-18 20:27:32 +01:00
commit 9bad066765
No known key found for this signature in database
GPG key ID: 221E9281655813A6
511 changed files with 10032 additions and 7242 deletions

View file

@ -16,12 +16,17 @@ namespace Respect\Validation\Exceptions\SubdivisionCode;
use Respect\Validation\Exceptions\SubdivisionCodeException;
/**
* Exception class for Democratic Republic of the Congo subdivision code.
* Exception class for subdivision codes of Democratic Republic of the Congo.
*
* ISO 3166-1 alpha-2: CD
*
* @author Henrique Moody <henriquemoody@gmail.com>
*/
class CdSubdivisionCodeException extends SubdivisionCodeException
final class CdSubdivisionCodeException extends SubdivisionCodeException
{
/**
* {@inheritdoc}
*/
public static $defaultTemplates = [
self::MODE_DEFAULT => [
self::STANDARD => '{{name}} must be a subdivision code of Democratic Republic of the Congo',