Intercom\IntercomLeads::leadPath PHP Метод

leadPath() публичный Метод

Returns endpoint path to Lead with given ID.
public leadPath ( string $id ) : string
$id string
Результат string
    public function leadPath($id)
    {
        return "contacts/" . $id;
    }

Usage Example

Пример #1
0
 public function testLeadPath()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $leads = new IntercomLeads($stub);
     $this->assertEquals($leads->leadPath("foo"), "contacts/foo");
 }