protected function &getProperty(&$element, $property, $fallback = null)
    {
        if (is_array($element) && (isset($element[$property]) || array_key_exists($property, $element)) /*$this->checkMode == self::CHECK_MODE_TYPE_CAST*/) {
            return $element[$property];
        } elseif (is_object($element) && property_exists($element, $property)) {
            return $element->$property;
        }

        return $fallback;
    }
protected function &getProperty(&$element, $property, $fallback = null)
    {
        if (is_array($element) && (isset($element[$property]) || array_key_exists($property, $element)) /*$this->checkMode == self::CHECK_MODE_TYPE_CAST*/) {
            return $element[$property];
        } elseif (is_object($element) && property_exists($element, $property)) {
            return $element->$property;
        }

        return $fallback;
    }
protected function & getProperty ( & $ element , $ property , $ fallback = null ) { if ( is_array ( $ element ) && ( isset ( $ element [ $ property ] ) || array_key_exists ( $ property , $ element ) ) /*$this->checkMode == self::CHECK_MODE_TYPE_CAST*/ ) { return $ element [ $ property ] ; } elseif ( is_object ( $ element ) && property_exists ( $ element , $ property ) ) { return $ element -> $ property ; } return $ fallback ; }
retrieves a property from an object or array

@param mixed  $element  Element to validate
@param string $property Property to retrieve
@param mixed  $fallback Default value if property is not found

@return mixed
retrieves a property from an object or array