Messages/AccountLink.php
public function getData()
  {
    if($this->logout)
    {
      $buttons = new MessageButton( MessageButton::TYPE_ACCOUNT_UNLINK, '');
    }
    else
    {
      $buttons = new MessageButton( MessageButton::TYPE_ACCOUNT_LINK, '', $this->url);
    }
    
    $result = [
      'title' => $this->title,
      'subtitle' => $this->subtitle,
      'image_url' => $this->image_url,
      'buttons' => [$buttons->getData()]
    ];
    return $result;
  }
public function getData()
  {
    if($this->logout)
    {
      $buttons = new MessageButton( MessageButton::TYPE_ACCOUNT_UNLINK, '');
    }
    else
    {
      $buttons = new MessageButton( MessageButton::TYPE_ACCOUNT_LINK, '', $this->url);
    }
    
    $result = [
      'title' => $this->title,
      'subtitle' => $this->subtitle,
      'image_url' => $this->image_url,
      'buttons' => [$buttons->getData()]
    ];
    return $result;
  }
public function getData ( ) { if ( $ this -> logout ) { $ buttons = new MessageButton ( MessageButton :: TYPE_ACCOUNT_UNLINK , '' ) ; } else { $ buttons = new MessageButton ( MessageButton :: TYPE_ACCOUNT_LINK , '' , $ this -> url ) ; } $ result = [ 'title' => $ this -> title , 'subtitle' => $ this -> subtitle , 'image_url' => $ this -> image_url , 'buttons' => [ $ buttons -> getData ( ) ] ] ; return $ result ; }
Get AccountLink data

@return array
Get AccountLink data