Google\Cloud\BigQuery\Time::type PHP Method

type() public method

Get the type.
public type ( ) : string
return string
    public function type()
    {
        return ValueMapper::TYPE_TIME;
    }

Usage Example

 public function testGetsType()
 {
     $time = new Time(new \DateTime());
     $this->assertEquals('TIME', $time->type());
 }