Exemplo n.º 1
0
 /**
  * Returns a new TimeZone object
  *
  * @param StringLiteral $name
  * @throws InvalidTimeZoneException
  */
 public function __construct(StringLiteral $name)
 {
     if (!in_array($name->toNative(), timezone_identifiers_list())) {
         throw new InvalidTimeZoneException($name);
     }
     $this->name = $name;
 }
Exemplo n.º 2
0
 /**
  * @return StringLiteral
  */
 public function getPassWord()
 {
     return $this->passWord->toNative();
 }
Exemplo n.º 3
0
 public function testToNative()
 {
     $string = new StringLiteral('foo');
     $this->assertEquals('foo', $string->toNative());
 }