Channel.php 507B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Illuminate\Broadcasting;
  3. class Channel
  4. {
  5. /**
  6. * The channel's name.
  7. *
  8. * @var string
  9. */
  10. public $name;
  11. /**
  12. * Create a new channel instance.
  13. *
  14. * @param string $name
  15. * @return void
  16. */
  17. public function __construct($name)
  18. {
  19. $this->name = $name;
  20. }
  21. /**
  22. * Convert the channel instance to a string.
  23. *
  24. * @return string
  25. */
  26. public function __toString()
  27. {
  28. return $this->name;
  29. }
  30. }