Article.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. * This file is part of the overtrue/wechat.
  4. *
  5. * (c) overtrue <i@overtrue.me>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. /**
  11. * Article.php.
  12. *
  13. * @author overtrue <i@overtrue.me>
  14. * @copyright 2015 overtrue <i@overtrue.me>
  15. *
  16. * @see https://github.com/overtrue
  17. * @see http://overtrue.me
  18. */
  19. namespace EasyWeChat\Message;
  20. /**
  21. * Class Article.
  22. */
  23. class Article extends AbstractMessage
  24. {
  25. /**
  26. * Properties.
  27. *
  28. * @var array
  29. */
  30. protected $properties = [
  31. 'thumb_media_id',
  32. 'author',
  33. 'title',
  34. 'content',
  35. 'digest',
  36. 'source_url',
  37. 'show_cover',
  38. ];
  39. /**
  40. * Aliases of attribute.
  41. *
  42. * @var array
  43. */
  44. protected $aliases = [
  45. 'source_url' => 'content_source_url',
  46. 'show_cover' => 'show_cover_pic',
  47. ];
  48. }