library/QATools/QATools/PageObject/PageFactory.php
public function initPage(Page $page)
	{
		/* @var $annotations PageUrlAnnotation[] */
		$annotations = $this->annotationManager->getClassAnnotations($page, '@page-url');

		if ( !$annotations || !($annotations[0] instanceof PageUrlAnnotation) ) {
			return $this;
		}

		$page->setUrlBuilder(
			$this->urlFactory->getBuilder(
				$this->urlNormalizer->normalize($annotations[0])
			)
		);

		return $this;
	}
public function initPage(Page $page)
	{
		/* @var $annotations PageUrlAnnotation[] */
		$annotations = $this->annotationManager->getClassAnnotations($page, '@page-url');

		if ( !$annotations || !($annotations[0] instanceof PageUrlAnnotation) ) {
			return $this;
		}

		$page->setUrlBuilder(
			$this->urlFactory->getBuilder(
				$this->urlNormalizer->normalize($annotations[0])
			)
		);

		return $this;
	}
public function initPage ( Page $ page ) { /* @var $annotations PageUrlAnnotation[] */ $ annotations = $ this -> annotationManager -> getClassAnnotations ( $ page , '@page-url' ) ; if ( ! $ annotations || ! ( $ annotations [ 0 ] instanceof PageUrlAnnotation ) ) { return $ this ; } $ page -> setUrlBuilder ( $ this -> urlFactory -> getBuilder ( $ this -> urlNormalizer -> normalize ( $ annotations [ 0 ] ) ) ) ; return $ this ; }
Initializes the page.

@param Page $page Page to initialize.

@return self
Initializes the page .