CompletePackage.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Package;
  12. /**
  13. * Package containing additional metadata that is not used by the solver
  14. *
  15. * @author Nils Adermann <naderman@naderman.de>
  16. */
  17. class CompletePackage extends Package implements CompletePackageInterface
  18. {
  19. protected $repositories;
  20. protected $license = array();
  21. protected $keywords;
  22. protected $authors;
  23. protected $description;
  24. protected $homepage;
  25. protected $scripts = array();
  26. protected $support = array();
  27. /**
  28. * @param array $scripts
  29. */
  30. public function setScripts(array $scripts)
  31. {
  32. $this->scripts = $scripts;
  33. }
  34. /**
  35. * {@inheritDoc}
  36. */
  37. public function getScripts()
  38. {
  39. return $this->scripts;
  40. }
  41. /**
  42. * Set the repositories
  43. *
  44. * @param string $repositories
  45. */
  46. public function setRepositories($repositories)
  47. {
  48. $this->repositories = $repositories;
  49. }
  50. /**
  51. * {@inheritDoc}
  52. */
  53. public function getRepositories()
  54. {
  55. return $this->repositories;
  56. }
  57. /**
  58. * Set the license
  59. *
  60. * @param array $license
  61. */
  62. public function setLicense(array $license)
  63. {
  64. $this->license = $license;
  65. }
  66. /**
  67. * {@inheritDoc}
  68. */
  69. public function getLicense()
  70. {
  71. return $this->license;
  72. }
  73. /**
  74. * Set the keywords
  75. *
  76. * @param array $keywords
  77. */
  78. public function setKeywords(array $keywords)
  79. {
  80. $this->keywords = $keywords;
  81. }
  82. /**
  83. * {@inheritDoc}
  84. */
  85. public function getKeywords()
  86. {
  87. return $this->keywords;
  88. }
  89. /**
  90. * Set the authors
  91. *
  92. * @param array $authors
  93. */
  94. public function setAuthors(array $authors)
  95. {
  96. $this->authors = $authors;
  97. }
  98. /**
  99. * {@inheritDoc}
  100. */
  101. public function getAuthors()
  102. {
  103. return $this->authors;
  104. }
  105. /**
  106. * Set the description
  107. *
  108. * @param string $description
  109. */
  110. public function setDescription($description)
  111. {
  112. $this->description = $description;
  113. }
  114. /**
  115. * {@inheritDoc}
  116. */
  117. public function getDescription()
  118. {
  119. return $this->description;
  120. }
  121. /**
  122. * Set the homepage
  123. *
  124. * @param string $homepage
  125. */
  126. public function setHomepage($homepage)
  127. {
  128. $this->homepage = $homepage;
  129. }
  130. /**
  131. * {@inheritDoc}
  132. */
  133. public function getHomepage()
  134. {
  135. return $this->homepage;
  136. }
  137. /**
  138. * Set the support information
  139. *
  140. * @param array $support
  141. */
  142. public function setSupport(array $support)
  143. {
  144. $this->support = $support;
  145. }
  146. /**
  147. * {@inheritDoc}
  148. */
  149. public function getSupport()
  150. {
  151. return $this->support;
  152. }
  153. }