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

type() public method

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

Usage Example

 public function testGetsType()
 {
     $timestamp = new Timestamp(new \DateTime());
     $this->assertEquals('TIMESTAMP', $timestamp->type());
 }