Maknz\Slack\Attachment::getFallback PHP Method

getFallback() public method

Get the fallback text.
public getFallback ( ) : string
return string
    public function getFallback()
    {
        return $this->fallback;
    }

Usage Example

 public function testAttachmentCreationFromArray()
 {
     $a = new Attachment(['fallback' => 'Fallback', 'text' => 'Text', 'pretext' => 'Pretext', 'color' => 'bad', 'mrkdwn_in' => ['pretext', 'text', 'fields']]);
     $this->assertEquals('Fallback', $a->getFallback());
     $this->assertEquals('Text', $a->getText());
     $this->assertEquals('Pretext', $a->getPretext());
     $this->assertEquals('bad', $a->getColor());
     $this->assertEquals([], $a->getFields());
     $this->assertEquals(['pretext', 'text', 'fields'], $a->getMarkdownFields());
 }
All Usage Examples Of Maknz\Slack\Attachment::getFallback