ValueObjects\DateTime\TimeZone::__toString PHP Method

__toString() public method

Returns timezone name as string
public __toString ( ) : string
return string
    public function __toString()
    {
        return $this->getName()->__toString();
    }

Usage Example

Beispiel #1
0
 public function testToString()
 {
     $timeZone = new TimeZone(new StringLiteral('Europe/Madrid'));
     $this->assertEquals('Europe/Madrid', $timeZone->__toString());
 }