library/QATools/QATools/PageObject/PropertyDecorator/DefaultPropertyDecorator.php
public function decorate(Property $property)
	{
		if ( !$this->canDecorate($property) ) {
			return null;
		}

		$locator = $this->locatorFactory->createLocator($property);

		return $locator !== null ? $this->doDecorate($property, $locator) : null;
	}
public function decorate(Property $property)
	{
		if ( !$this->canDecorate($property) ) {
			return null;
		}

		$locator = $this->locatorFactory->createLocator($property);

		return $locator !== null ? $this->doDecorate($property, $locator) : null;
	}
public function decorate ( Property $ property ) { if ( ! $ this -> canDecorate ( $ property ) ) { return null ; } $ locator = $ this -> locatorFactory -> createLocator ( $ property ) ; return $ locator !== null ? $ this -> doDecorate ( $ property , $ locator ) : null ; }
This method is called by PageFactory on all properties to decide how to decorate the property.

@param Property $property The property that may be decorated.

@return IProxy
This method is called by PageFactory on all properties to decide how to decorate the property .