src/PropertySet.php
public function getProperty($key, &$match = false){
		if(is_array($key)){
			foreach(array_reverse($this->properties) as $property){
				if(in_array($property->getName(), $key)){
					$match = $property->getName();
					return $property;
				}
			}
		}else{
			foreach(array_reverse($this->properties) as $property){
				if($property->getName()==$key){
					$match = $key;
					return $property;
				}
			}
		}
		return false;
	}
public function getProperty($key, &$match = false){
		if(is_array($key)){
			foreach(array_reverse($this->properties) as $property){
				if(in_array($property->getName(), $key)){
					$match = $property->getName();
					return $property;
				}
			}
		}else{
			foreach(array_reverse($this->properties) as $property){
				if($property->getName()==$key){
					$match = $key;
					return $property;
				}
			}
		}
		return false;
	}
public function getProperty ( $ key , & $ match = false ) { if ( is_array ( $ key ) ) { foreach ( array_reverse ( $ this -> properties ) as $ property ) { if ( in_array ( $ property -> getName ( ) , $ key ) ) { $ match = $ property -> getName ( ) ; return $ property ; } } } else { foreach ( array_reverse ( $ this -> properties ) as $ property ) { if ( $ property -> getName ( ) == $ key ) { $ match = $ key ; return $ property ; } } } return false ; }
Return the property if it is within this set otherwise retuns false
@param string|string[] $key Name or array of names of the property to obtain
@param string|bool $match Name of the matched property
@return \csslib\Property|boolean
Return the property if it is within this set otherwise retuns false