Maknz\Slack\Attachment::getMarkdownFields PHP Method

getMarkdownFields() public method

Get the fields Slack should interpret in its Markdown-like language.
public getMarkdownFields ( ) : array
return array
    public function getMarkdownFields()
    {
        return $this->markdown_fields;
    }

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::getMarkdownFields