Intercom\IntercomCompanies::getCompanies PHP Method

getCompanies() public method

Returns list of Companies.
See also: https://developers.intercom.io/reference#list-companies
public getCompanies ( array $options ) : mixed
$options array
return mixed
    public function getCompanies($options)
    {
        return $this->client->get("companies", $options);
    }

Usage Example

 public function testUserGet()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->willReturn('foo');
     $companies = new IntercomCompanies($stub);
     $this->assertEquals('foo', $companies->getCompanies([]));
 }