src/Micrometa/Domain/Item/ItemSetupTrait.php
protected function valProp($property)
    {
        // Validate the property structure
        $this->valPropStructure($property);

        // If the property has values
        if (count($property->values)) {
            // Validate the property name
            $property->name = $this->valPropName($property);

            // Validate the property values
            $property->values = $this->valPropValues($property->values);

            // If the property has significant values
            if (count($property->values)) {
                return $property;
            }
        }

        return null;
    }
protected function valProp($property)
    {
        // Validate the property structure
        $this->valPropStructure($property);

        // If the property has values
        if (count($property->values)) {
            // Validate the property name
            $property->name = $this->valPropName($property);

            // Validate the property values
            $property->values = $this->valPropValues($property->values);

            // If the property has significant values
            if (count($property->values)) {
                return $property;
            }
        }

        return null;
    }
protected function valProp ( $ property ) { // Validate the property structure $ this -> valPropStructure ( $ property ) ; // If the property has values if ( count ( $ property -> values ) ) { // Validate the property name $ property -> name = $ this -> valPropName ( $ property ) ; // Validate the property values $ property -> values = $ this -> valPropValues ( $ property -> values ) ; // If the property has significant values if ( count ( $ property -> values ) ) { return $ property ; } } return null ; }
Validate a single property

@param \stdClass $property Property

@return \stdClass Validated property
Validate a single property