Advertisement
nicolas-chuet

classe Urls

Apr 3rd, 2020
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. class urls
  5. {
  6.  
  7. private array $url = [];
  8.  
  9. /**
  10. * urls constructor.
  11. *
  12. */
  13. public function __construct(){}
  14.  
  15. /**
  16. * @return mixed
  17. */
  18. public function getUrl()
  19. {
  20. return $this->url;
  21. }
  22.  
  23. /**
  24. * @param $urls
  25. */
  26. public function setUrl($urls)
  27. {
  28. foreach ($urls as $key => $value )
  29. {
  30. $this->url = $urls[$value];
  31. }
  32. }
  33.  
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement