src/MetaModelHandlerFactory.php
public function generate(IMetaModel $metaModel): \Generator
    {
        foreach ($metaModel->getAttributes() as $attribute) {
            if (!$attribute instanceof ITranslated) {
                continue;
            }

            if ($this->handlerFactories->has($class = \get_class($attribute))) {
                yield $attribute->getColName() => $this->handlerFactories->get($class)->create($attribute);
            }
        }
    }
public function generate(IMetaModel $metaModel): \Generator
    {
        foreach ($metaModel->getAttributes() as $attribute) {
            if (!$attribute instanceof ITranslated) {
                continue;
            }

            if ($this->handlerFactories->has($class = \get_class($attribute))) {
                yield $attribute->getColName() => $this->handlerFactories->get($class)->create($attribute);
            }
        }
    }
public function generate ( IMetaModel $ metaModel ) : \ Generator { foreach ( $ metaModel -> getAttributes ( ) as $ attribute ) { if ( ! $ attribute instanceof ITranslated ) { continue ; } if ( $ this -> handlerFactories -> has ( $ class = \ get_class ( $ attribute ) ) ) { yield $ attribute -> getColName ( ) => $ this -> handlerFactories -> get ( $ class ) -> create ( $ attribute ) ; } } }
Generate the attribute handlers.

@param IMetaModel $metaModel The MetaModel.

@return \Generator
Generate the attribute handlers .