Exemplo n.º 1
0
 /**
  * Initialize TicketKey
  * @return void
  */
 private function initializeKey()
 {
     if ($this->sequenceNumber->getValue() && is_null($this->key)) {
         $this->key = new TicketKey($this->branch->getKey(), $this->sequenceNumber->getValue());
     }
 }
 public function testThatCreates()
 {
     $number = new TicketSequenceNumber(12);
     $this->assertEquals(12, $number->getValue());
     $this->assertEquals('12', (string) $number);
 }