encode() public method

Encode an integer.
public encode ( integer $value ) : integer
$value integer
return integer
Beispiel #1
0
 /**
  * Encode the given integer.
  *
  * @param int $value
  *
  * @return int
  */
 public function encode($value)
 {
     return $this->obfuscator->encode($value);
 }
 public function testEncodeBadStrings()
 {
     $this->setExpectedException('InvalidArgumentException');
     $optimus = new Optimus(1580030173, 59260789);
     $optimus->encode("foo");
 }