PHP Class Shopware\DataGenerator\Resources\Categories

Inheritance: extends Shopware\DataGenerator\Resources\BaseResource
Afficher le fichier Open project: shopwarelabs/sw-cli-tools

Méthodes publiques

Свойство Type Description
$categoriesFlat The array with the categories that are going to be created

Protected Properties

Свойство Type Description
$categoriesSum The number of categories which have been created Used in order to not create too many categories
$tables array
$total

Méthodes publiques

Méthode Description
create ( Shopware\DataGenerator\Writer\WriterInterface $writer )
getUniqueId ( $type )

Private Methods

Méthode Description
buildNestedTree ( integer $number, integer | null $parentCategory = null, integer $depth, array | null $leftNeighbour = null ) : array
buildPath ( $id ) : array Builds path for the given category

Method Details

create() public méthode

public create ( Shopware\DataGenerator\Writer\WriterInterface $writer )
$writer Shopware\DataGenerator\Writer\WriterInterface

getUniqueId() public méthode

public getUniqueId ( $type )

Property Details

$categoriesFlat public_oe property

The array with the categories that are going to be created
public $categoriesFlat

$categoriesSum protected_oe property

The number of categories which have been created Used in order to not create too many categories
protected $categoriesSum

$tables protected_oe property

protected array $tables
Résultat array

$total protected_oe property

protected $total