コード例 #1
0
ファイル: Number.php プロジェクト: gries/number-system
 /**
  * Check if the number is valid in the current number system.
  */
 private function validate()
 {
     $this->numberSystem->validateNumberValue($this->value());
 }
コード例 #2
0
ファイル: BinarySystem.php プロジェクト: gries/number-system
 public function __construct()
 {
     parent::__construct(['0', '1']);
 }
コード例 #3
0
 public function __construct()
 {
     return parent::__construct(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']);
 }