type() public method

Get the type.
public type ( ) : string
return string
 public function testGetsType()
 {
     $time = new Time(new \DateTime());
     $this->assertEquals('TIME', $time->type());
 }