src/Micrometa/Domain/Item/ItemSetupTrait.php
protected function valProperties(array $properties)
    {
        $validatedProperties = $this->propertyListFactory->create();

        // Run through all validated properties
        foreach (array_filter(array_map([$this, 'valProp'], $properties)) as $property) {
            $validatedProperties->add($property);
        }

        return $validatedProperties;
    }
protected function valProperties(array $properties)
    {
        $validatedProperties = $this->propertyListFactory->create();

        // Run through all validated properties
        foreach (array_filter(array_map([$this, 'valProp'], $properties)) as $property) {
            $validatedProperties->add($property);
        }

        return $validatedProperties;
    }
protected function valProperties ( array $ properties ) { $ validatedProperties = $ this -> propertyListFactory -> create ( ) ; // Run through all validated properties foreach ( array_filter ( array_map ( [ $ this , 'valProp' ] , $ properties ) ) as $ property ) { $ validatedProperties -> add ( $ property ) ; } return $ validatedProperties ; }
Validate the item properties

@param array $properties Item properties

@return PropertyListInterface Validated item properties
@throws InvalidArgumentException If the property name is empty
Validate the item properties