type() public method

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