| @@ -8,7 +8,13 @@ | ||
| 8 | 8 |  { | 
| 9 | 9 | public function build($uri = null, array $queries = null, array $headers = null, array $postBody = null, $body = null, array $options = []); | 
| 10 | 10 | |
| 11 | + /** | |
| 12 | + * @return void | |
| 13 | + */ | |
| 11 | 14 | public function setClient(ClientInterface $client = null); | 
| 12 | 15 | |
| 16 | + /** | |
| 17 | + * @return ClientInterface|null | |
| 18 | + */ | |
| 13 | 19 | public function getClient(); | 
| 14 | 20 | } | 
| @@ -93,6 +93,9 @@ discard block | ||
| 93 | 93 |          return $this->get('friendly.http.http_content_type_guesser'); | 
| 94 | 94 | } | 
| 95 | 95 | |
| 96 | + /** | |
| 97 | + * @param string $service | |
| 98 | + */ | |
| 96 | 99 | protected function get($service) | 
| 97 | 100 |      { | 
| 98 | 101 |          if ($this->container->has($service)) { | 
| @@ -106,6 +109,9 @@ discard block | ||
| 106 | 109 | throw new ServiceNotFoundException($service); | 
| 107 | 110 | } | 
| 108 | 111 | |
| 112 | + /** | |
| 113 | + * @param string $name | |
| 114 | + */ | |
| 109 | 115 | protected function getParameter($name) | 
| 110 | 116 |      { | 
| 111 | 117 |          if ($this->container->hasParameter($name)) { | 
| @@ -18,6 +18,9 @@ | ||
| 18 | 18 | $this->container = $container; | 
| 19 | 19 | } | 
| 20 | 20 | |
| 21 | + /** | |
| 22 | + * @param ContextInterface $context | |
| 23 | + */ | |
| 21 | 24 | public function supports($context) | 
| 22 | 25 |      { | 
| 23 | 26 | return $context instanceof Context; | 
| @@ -160,6 +160,9 @@ | ||
| 160 | 160 | return $elements; | 
| 161 | 161 | } | 
| 162 | 162 | |
| 163 | + /** | |
| 164 | + * @param \Closure $actionCallback | |
| 165 | + */ | |
| 163 | 166 | protected function elementAction($locator, $element, $nbr = 1, $actionCallback, $filterCallback = null) | 
| 164 | 167 |      { | 
| 165 | 168 | $elements = $this->searchElement($locator, $element, $filterCallback); | 
| @@ -26,6 +26,11 @@ discard block | ||
| 26 | 26 | $this->minkParameters = $parameters; | 
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | + /** | |
| 30 | + * @param string $offset | |
| 31 | + * | |
| 32 | + * @return string | |
| 33 | + */ | |
| 29 | 34 | public function getMinkParameter($offset) | 
| 30 | 35 |      { | 
| 31 | 36 |         if (!isset($this->minkParameters[$offset])) { | 
| @@ -48,6 +53,9 @@ discard block | ||
| 48 | 53 | return $this->getMink()->assertSession($name); | 
| 49 | 54 | } | 
| 50 | 55 | |
| 56 | + /** | |
| 57 | + * @return string | |
| 58 | + */ | |
| 51 | 59 | public function locatePath($path) | 
| 52 | 60 |      { | 
| 53 | 61 |          $startUrl = rtrim($this->getMinkParameter('base_url'), '/') . '/'; | 
| @@ -10,11 +10,17 @@ discard block | ||
| 10 | 10 |  { | 
| 11 | 11 | private $pages = []; | 
| 12 | 12 | |
| 13 | + /** | |
| 14 | + * @param TableNode $arguments | |
| 15 | + */ | |
| 13 | 16 | public function visitPage($page, $arguments = null) | 
| 14 | 17 |      { | 
| 15 | 18 | $this->getSession()->visit($this->locatePath($this->getPagePath($page, $arguments))); | 
| 16 | 19 | } | 
| 17 | 20 | |
| 21 | + /** | |
| 22 | + * @param TableNode $arguments | |
| 23 | + */ | |
| 18 | 24 | public function assertPage($page, $arguments = null) | 
| 19 | 25 |      { | 
| 20 | 26 |          try { | 
| @@ -52,6 +58,10 @@ discard block | ||
| 52 | 58 | return $this->resolvePagePath($page, $parameters, $entities); | 
| 53 | 59 | } | 
| 54 | 60 | |
| 61 | + /** | |
| 62 | + * @param string $entity | |
| 63 | + * @param string $field | |
| 64 | + */ | |
| 55 | 65 | protected function getEntityFromRecordBag($entity, $field) | 
| 56 | 66 |      { | 
| 57 | 67 | $class = $this->resolveEntity($entity)->getName(); | 
| @@ -43,6 +43,9 @@ | ||
| 43 | 43 | return true; | 
| 44 | 44 | } | 
| 45 | 45 | |
| 46 | + /** | |
| 47 | + * @param string $name | |
| 48 | + */ | |
| 46 | 49 | protected function getTagContent($name) | 
| 47 | 50 |      { | 
| 48 | 51 | $content = []; | 
| @@ -106,6 +106,9 @@ | ||
| 106 | 106 | return array_unique($results); | 
| 107 | 107 | } | 
| 108 | 108 | |
| 109 | + /** | |
| 110 | + * @param string $case | |
| 111 | + */ | |
| 109 | 112 | public function asAccessForCase($entity, $property, $case) | 
| 110 | 113 |      { | 
| 111 | 114 |          $method = sprintf('to%s', $case); | 
| @@ -4,10 +4,25 @@ | ||
| 4 | 4 | |
| 5 | 5 | interface GuesserInterface | 
| 6 | 6 |  { | 
| 7 | + /** | |
| 8 | + * @return boolean | |
| 9 | + */ | |
| 7 | 10 | public function supports(array $mapping); | 
| 8 | 11 | public function transform($str, array $mapping); | 
| 9 | 12 | public function fake(array $mapping); | 
| 13 | + | |
| 14 | + /** | |
| 15 | + * @return GuesserManager | |
| 16 | + */ | |
| 10 | 17 | public function getManager(); | 
| 18 | + | |
| 19 | + /** | |
| 20 | + * @return AbstractGuesser | |
| 21 | + */ | |
| 11 | 22 | public function setManager(GuesserManager $manager); | 
| 23 | + | |
| 24 | + /** | |
| 25 | + * @return string | |
| 26 | + */ | |
| 12 | 27 | public function getName(); | 
| 13 | 28 | } |