Raw.php 840 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. * Raw.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 Raw.
  22. */
  23. class Raw extends AbstractMessage
  24. {
  25. /**
  26. * @var string
  27. */
  28. protected $type = 'raw';
  29. /**
  30. * Properties.
  31. *
  32. * @var array
  33. */
  34. protected $properties = ['content'];
  35. /**
  36. * Constructor.
  37. *
  38. * @param string $content
  39. */
  40. public function __construct($content)
  41. {
  42. parent::__construct(['content' => strval($content)]);
  43. }
  44. }