Guest User

Untitled

a guest
Sep 3rd, 2020
43
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace Cards;
  15.  
  16. class CardStack implements StackManipulator
  17. {
  18. protected $position = 0;
  19. protected $stack;
  20.  
  21. public function __construct(array $cards = [])
  22. {
  23. if (count($cards) === 0) {
  24. return [];
  25. }
  26. }
  27.  
  28. static public function createDeck()
  29. {
  30. foreach ($suits as $suit) {
  31. for ($i = 1; $i <= 13; ) {
  32. }
  33. }
  34.  
  35. return new CardStack($cards);
  36. }
  37.  
  38. protected function hasAvailableCard()
  39. {
  40. return $this->count() !== 0;
  41. }
  42.  
  43. protected function validateIsArrayOfCards($cards)
  44. {
  45. foreach ($cards as $Card) {
  46. if (($Card instanceof FrenchCard) === false) {
  47. throw new \InvalidArgumentException('Each element of the array must be an instance of Card. Given ' . gettype($Card));
  48. }
  49. }
  50. }
  51.  
  52. protected function validateQuantity($quantity)
  53. {
  54. if (is_int($quantity) === false) {
  55. throw new \InvalidArgumentException('Quantity must be integer, given ' . gettype($quantity));
  56. }
  57.  
  58. if ($quantity <= 0) {
  59. throw new \InvalidArgumentException('Quantity must be greater than 0');
  60. }
  61. }
  62.  
  63. public function addOnTop(FrenchCard $card)
  64. {
  65. }
  66.  
  67. public function addToBottom(FrenchCard $card)
  68. {
  69. }
  70.  
  71. public function addStackOnTop(StackManipulator $cardStack)
  72. {
  73. if (count($cardStack) === 0) {
  74. ..................................................................
  75. ......................................
  76. ...........
RAW Paste Data