public function __construct(array $typeMap, $defaultRule) { $this->typeMap = $typeMap; $this->defaultRule = $defaultRule; }