src/Micrometa/Domain/Item/ItemSetupTrait.php
protected function setup(
        PropertyListFactoryInterface $propertyListFactory,
        array $type,
        array $properties,
        $itemId,
        $itemLanguage
    ) {
        $this->propertyListFactory = $propertyListFactory;
        $this->type                = $this->valTypes($type);
        $this->properties          = $this->valProperties($properties);
        $this->itemId              = $itemId ?: null;
        $this->itemLanguage        = $itemLanguage ?: null;
    }
protected function setup(
        PropertyListFactoryInterface $propertyListFactory,
        array $type,
        array $properties,
        $itemId,
        $itemLanguage
    ) {
        $this->propertyListFactory = $propertyListFactory;
        $this->type                = $this->valTypes($type);
        $this->properties          = $this->valProperties($properties);
        $this->itemId              = $itemId ?: null;
        $this->itemLanguage        = $itemLanguage ?: null;
    }
protected function setup ( PropertyListFactoryInterface $ propertyListFactory , array $ type , array $ properties , $ itemId , $ itemLanguage ) { $ this -> propertyListFactory = $ propertyListFactory ; $ this -> type = $ this -> valTypes ( $ type ) ; $ this -> properties = $ this -> valProperties ( $ properties ) ; $ this -> itemId = $ itemId ? : null ; $ this -> itemLanguage = $ itemLanguage ? : null ; }
Setup the item

@param PropertyListFactoryInterface $propertyListFactory Property list factory
@param string[]|\stdClass[] $type                        Item type(s)
@param \stdClass[] $properties                           Item properties
@param string $itemId                                    Item ID
@param string $itemLanguage                              Item language
Setup the item