Class containing functions used to build the Agent header.

CloneableInstantiable
Constants
public Google\ApiCore\AgentHeader::AGENT_HEADER_KEY = 'x-goog-api-client'
public Google\ApiCore\AgentHeader::UNKNOWN_VERSION = ''
Methods
public static buildAgentHeader( $headerInfo)
 


  • return array Agent header array
public static readGapicVersionFromFile( $callingClass)
 
Reads the gapic version string from a VERSION file. In order to determine the file location, this method follows this procedure: - accepts a class name $callingClass - identifies the file defining that class - searches up the directory structure for the 'src' directory - looks in the directory above 'src' for a file named VERSION

  • return string the gapic version
  • throws ReflectionException
Methods
public static buildAgentHeader( $headerInfo)
 


  • return array Agent header array
public static readGapicVersionFromFile( $callingClass)
 
Reads the gapic version string from a VERSION file. In order to determine the file location, this method follows this procedure: - accepts a class name $callingClass - identifies the file defining that class - searches up the directory structure for the 'src' directory - looks in the directory above 'src' for a file named VERSION

  • return string the gapic version
  • throws ReflectionException
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only