/** * __construct() - Sets configuration options * * @param string $connection Optional * @param string $tableName Optional * @param string $identityColumn Optional * @param string $credentialColumn Optional * @param string $credentialTreatment Optional */ public function __construct($connection = 'default', $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null) { parent::__construct($connection, $tableName, $identityColumn, $credentialColumn); if (null !== $credentialTreatment) { $this->setCredentialTreatment($credentialTreatment); } }
/** * __construct() - Sets configuration options * * @param string $connection Optional * @param string $tableName Optional * @param string $identityColumn Optional * @param string $credentialColumn Optional * @param callable $credentialValidationCallback Optional */ public function __construct($connection = 'default', $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialValidationCallback = null) { parent::__construct($connection, $tableName, $identityColumn, $credentialColumn); if (null !== $credentialValidationCallback) { $this->setCredentialValidationCallback($credentialValidationCallback); } else { $this->setCredentialValidationCallback(function ($a, $b) { return $a === $b; }); } }