rcrowe\Hippy\Client::getFrom PHP Method

getFrom() public method

Get who the message will be sent from.
public getFrom ( ) : string
return string
    public function getFrom()
    {
        return $this->transport->getFrom();
    }

Usage Example

Example #1
0
 public function testFrom()
 {
     $transport = new Transport(null, null, null);
     $hippy = new Hippy($transport);
     $this->assertNull($hippy->getFrom());
     $hippy->setFrom('rcrowe');
     $this->assertEquals($hippy->getFrom(), 'rcrowe');
     $transport = new Transport(null, null, 'vivalacrowe');
     $hippy = new Hippy($transport);
     $this->assertEquals($hippy->getFrom(), 'vivalacrowe');
 }