|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Nextcloud - user_sql |
| 4 | + * |
| 5 | + * @copyright 2018 Marcin Łojewski <dev@mlojewski.me> |
| 6 | + * @author Marcin Łojewski <dev@mlojewski.me> |
| 7 | + * |
| 8 | + * This program is free software: you can redistribute it and/or modify |
| 9 | + * it under the terms of the GNU Affero General Public License as |
| 10 | + * published by the Free Software Foundation, either version 3 of the |
| 11 | + * License, or (at your option) any later version. |
| 12 | + * |
| 13 | + * This program is distributed in the hope that it will be useful, |
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | + * GNU Affero General Public License for more details. |
| 17 | + * |
| 18 | + * You should have received a copy of the GNU Affero General Public License |
| 19 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 20 | + */ |
| 21 | + |
| 22 | +namespace OCA\UserSQL\Model; |
| 23 | + |
| 24 | +/** |
| 25 | + * A parameter of a hash algorithm. |
| 26 | + * |
| 27 | + * @author Marcin Łojewski <dev@mlojewski.me> |
| 28 | + */ |
| 29 | +class CryptoParam |
| 30 | +{ |
| 31 | + /** |
| 32 | + * @var string Parameter name. |
| 33 | + */ |
| 34 | + public $name; |
| 35 | + /** |
| 36 | + * @var int Parameter default value. |
| 37 | + */ |
| 38 | + public $value; |
| 39 | + /** |
| 40 | + * @var int Minimal value for parameter. |
| 41 | + */ |
| 42 | + public $min; |
| 43 | + /** |
| 44 | + * @var int Maximum value for parameter. |
| 45 | + */ |
| 46 | + public $max; |
| 47 | + |
| 48 | + /** |
| 49 | + * Class constructor. |
| 50 | + * |
| 51 | + * @param $name string Parameter name. |
| 52 | + * @param $value int Parameter default value. |
| 53 | + * @param $min int Minimal value for parameter. |
| 54 | + * @param $max int Maximum value for parameter. |
| 55 | + */ |
| 56 | + public function __construct($name, $value, $min, $max) |
| 57 | + { |
| 58 | + $this->name = $name; |
| 59 | + $this->value = $value; |
| 60 | + $this->min = $min; |
| 61 | + $this->max = $max; |
| 62 | + } |
| 63 | +} |
0 commit comments