PayPalApiHyperSchema

Class HyperSchema.

Defined (1)

The class is defined in the following location(s).

/classes/lib/PayPal/Api/HyperSchema.php  
  1. class HyperSchema extends PayPalModel 
  2. /** 
  3. * Sets Links 
  4. * @param \PayPal\Api\Links[] $links 
  5. *  
  6. * @return $this 
  7. */ 
  8. public function setLinks($links) 
  9. $this->links = $links; 
  10. return $this; 
  11.  
  12. /** 
  13. * Gets Links 
  14. * @return \PayPal\Api\Links[] 
  15. */ 
  16. public function getLinks() 
  17. return $this->links; 
  18.  
  19. /** 
  20. * Append Links to the list. 
  21. * @param \PayPal\Api\Links $links 
  22. * @return $this 
  23. */ 
  24. public function addLink($links) 
  25. if (!$this->getLinks()) { 
  26. return $this->setLinks(array($links)); 
  27. } else { 
  28. return $this->setLinks( 
  29. array_merge($this->getLinks(), array($links)) 
  30. ); 
  31.  
  32. /** 
  33. * Remove Links from the list. 
  34. * @param \PayPal\Api\Links $links 
  35. * @return $this 
  36. */ 
  37. public function removeLink($links) 
  38. return $this->setLinks( 
  39. array_diff($this->getLinks(), array($links)) 
  40. ); 
  41.  
  42. /** 
  43. * Sets FragmentResolution 
  44. * @param string $fragmentResolution 
  45. *  
  46. * @return $this 
  47. */ 
  48. public function setFragmentResolution($fragmentResolution) 
  49. $this->fragmentResolution = $fragmentResolution; 
  50. return $this; 
  51.  
  52. /** 
  53. * Gets FragmentResolution 
  54. * @return string 
  55. */ 
  56. public function getFragmentResolution() 
  57. return $this->fragmentResolution; 
  58.  
  59. /** 
  60. * Sets Readonly 
  61. * @param bool $readonly 
  62. *  
  63. * @return $this 
  64. */ 
  65. public function setReadonly($readonly) 
  66. $this->readonly = $readonly; 
  67. return $this; 
  68.  
  69. /** 
  70. * Gets Readonly 
  71. * @return bool 
  72. */ 
  73. public function getReadonly() 
  74. return $this->readonly; 
  75.  
  76. /** 
  77. * Sets ContentEncoding 
  78. * @param string $contentEncoding 
  79. *  
  80. * @return $this 
  81. */ 
  82. public function setContentEncoding($contentEncoding) 
  83. $this->contentEncoding = $contentEncoding; 
  84. return $this; 
  85.  
  86. /** 
  87. * Gets ContentEncoding 
  88. * @return string 
  89. */ 
  90. public function getContentEncoding() 
  91. return $this->contentEncoding; 
  92.  
  93. /** 
  94. * Sets PathStart 
  95. * @param string $pathStart 
  96. *  
  97. * @return $this 
  98. */ 
  99. public function setPathStart($pathStart) 
  100. $this->pathStart = $pathStart; 
  101. return $this; 
  102.  
  103. /** 
  104. * Gets PathStart 
  105. * @return string 
  106. */ 
  107. public function getPathStart() 
  108. return $this->pathStart; 
  109.  
  110. /** 
  111. * Sets MediaType 
  112. * @param string $mediaType 
  113. *  
  114. * @return $this 
  115. */ 
  116. public function setMediaType($mediaType) 
  117. $this->mediaType = $mediaType; 
  118. return $this; 
  119.  
  120. /** 
  121. * Gets MediaType 
  122. * @return string 
  123. */ 
  124. public function getMediaType() 
  125. return $this->mediaType; 
  126.