PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/unusedcss/src/BionicUniversity/UnusedcssBundle/Entity/Link.php

https://github.com/varrek/igor-kozlov
PHP | 109 lines | 43 code | 18 blank | 48 comment | 0 complexity | 51cf5e3df64061b94d64ade42eea109a MD5 | raw file
  1. <?php
  2. namespace BionicUniversity\UnusedcssBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Link
  6. */
  7. class Link
  8. {
  9. /**
  10. * @var integer
  11. */
  12. private $id;
  13. /**
  14. * @var string
  15. */
  16. private $link;
  17. /**
  18. * @var string
  19. */
  20. private $validationResult;
  21. /**
  22. * @var TestResult
  23. */
  24. private $test;
  25. /**
  26. * @return TestResult
  27. */
  28. public function getTest()
  29. {
  30. return $this->test;
  31. }
  32. /**
  33. * @param TestResult $test
  34. */
  35. public function setTest($test)
  36. {
  37. $this->test = $test;
  38. }
  39. /**
  40. * Get id
  41. *
  42. * @return integer
  43. */
  44. public function getId()
  45. {
  46. return $this->id;
  47. }
  48. /**
  49. * Set link
  50. *
  51. * @param string $link
  52. * @return Link
  53. */
  54. public function setLink($link)
  55. {
  56. $this->link = $link;
  57. }
  58. /**
  59. * Get link
  60. *
  61. * @return string
  62. */
  63. public function getLink()
  64. {
  65. return $this->link;
  66. }
  67. /**
  68. * Set validationResult
  69. *
  70. * @param string $validationResult
  71. * @return Link
  72. */
  73. public function setValidationResult($validationResult)
  74. {
  75. $this->validationResult = $validationResult;
  76. return $this;
  77. }
  78. /**
  79. * Get validationResult
  80. *
  81. * @return string
  82. */
  83. public function getValidationResult()
  84. {
  85. return $this->validationResult;
  86. }
  87. function __toString()
  88. {
  89. return "URL: ".$this->getLink().". Validation result: ". $this->getValidationResult().PHP_EOL;
  90. }
  91. }