Advertisement
SashaRaaa

Untitled

Jul 25th, 2018
1,330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class Article
  4. {
  5.  
  6. protected $message;
  7. protected $header;
  8. protected $shortmessage;
  9.  
  10. public function __construct(string $header, string $shortmessage, string $message)
  11. {
  12.  
  13.     $this->header = $header;
  14.     $this->shortmessage = $shortmessage;
  15.     $this->message = $message;
  16. }
  17.  
  18. public function getMessage()
  19. {
  20.     return $this->message;
  21. }
  22.  
  23.     public function getHeader()
  24.     {
  25.         return $this->header;
  26.     }
  27.  
  28.     public function getShortMessage()
  29.     {
  30.         return $this->shortmessage;
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement