src/Model/AttachmentActionConfirm.php
public function toArray()
    {
        $data = [
            'text' => $this->getText(),
        ];

        if($this->getTitle()) $data['title'] = $this->getTitle();
        if($this->getTitle()) $data['ok_text'] = $this->getOkText();
        if($this->getTitle()) $data['dismiss_text'] = $this->getDismissText();

        return $data;
    }
public function toArray()
    {
        $data = [
            'text' => $this->getText(),
        ];

        if($this->getTitle()) $data['title'] = $this->getTitle();
        if($this->getTitle()) $data['ok_text'] = $this->getOkText();
        if($this->getTitle()) $data['dismiss_text'] = $this->getDismissText();

        return $data;
    }
public function toArray ( ) { $ data = [ 'text' => $ this -> getText ( ) , ] ; if ( $ this -> getTitle ( ) ) $ data [ 'title' ] = $ this -> getTitle ( ) ; if ( $ this -> getTitle ( ) ) $ data [ 'ok_text' ] = $ this -> getOkText ( ) ; if ( $ this -> getTitle ( ) ) $ data [ 'dismiss_text' ] = $ this -> getDismissText ( ) ; return $ data ; }
Get the array representation of this confirm

@return array
Get the array representation of this confirm