<commit_before># TPFileQueue

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what
PSRs you support to avoid any confusion with users and contributors.

## Install

Via Composer

``` bash
$ composer require Talk-Point/TPFileQueue
```

Add to the `app/config.php` file in `providers`

```php
'providers' => [
    TPFileQueue\FileQueueServiceProvider::class,
]
```

## Usage

One Model can have many tasks, so that you create a Model and add the tasks relation.

``` php
/**
 * @return \Illuminate\Database\Eloquent\Relations\MorphMany
 */
public function tasks()
{
    return $this->morphMany('TPFileQueue\Models\Task', 'taskable');
}
```

To create a new task for your model.

```php
$model = YouModel::create([]);
$task = Task::createTask(OrderSuccess::class);
$model->tasks()->save($task);
$task->run();
``

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Testing

``` bash
$ composer test
```

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

## Security

If you discover any security related issues, please email <EMAIL> instead of using the issue tracker.

## Credits

- [Talk-Point-IT][link-author]
- [All Contributors][link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/Talk-Point/TPFileQueue.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/Talk-Point/TPFileQueue/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/Talk-Point/TPFileQueue.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/Talk-Point/TPFileQueue.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/Talk-Point/TPFileQueue.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/Talk-Point/TPFileQueue
[link-travis]: https://travis-ci.org/Talk-Point/TPFileQueue
[link-scrutinizer]: https://scrutinizer-ci.com/g/Talk-Point/TPFileQueue/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/Talk-Point/TPFileQueue
[link-downloads]: https://packagist.org/packages/Talk-Point/TPFileQueue
[link-author]: https://github.com/Talk-Point
[link-contributors]: ../../contributors
<commit_msg>update model<commit_after># TPFileQueue

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what
PSRs you support to avoid any confusion with users and contributors.

## Install

Via Composer

``` bash
$ composer require Talk-Point/TPFileQueue
```

Add to the `app/config.php` file in `providers`

```php
'providers' => [
    TPFileQueue\FileQueueServiceProvider::class,
]
```

## Usage

One Model can have many tasks, so that you create a Model and add the tasks relation.

``` php
/**
 * @return \Illuminate\Database\Eloquent\Relations\MorphMany
 */
public function tasks()
{
    return $this->morphMany('TPFileQueue\Models\Task', 'taskable');
}
```

To create a new task for your model.

```php
$model = YouModel::create([]);
$task = Task::createTask(OrderSuccess::class);
$model->tasks()->save($task);
$task->run();
```

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Testing

``` bash
$ composer test
```

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

## Security

If you discover any security related issues, please email <EMAIL> instead of using the issue tracker.

## Credits

- [Talk-Point-IT][link-author]
- [All Contributors][link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/Talk-Point/TPFileQueue.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/Talk-Point/TPFileQueue/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/Talk-Point/TPFileQueue.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/Talk-Point/TPFileQueue.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/Talk-Point/TPFileQueue.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/Talk-Point/TPFileQueue
[link-travis]: https://travis-ci.org/Talk-Point/TPFileQueue
[link-scrutinizer]: https://scrutinizer-ci.com/g/Talk-Point/TPFileQueue/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/Talk-Point/TPFileQueue
[link-downloads]: https://packagist.org/packages/Talk-Point/TPFileQueue
[link-author]: https://github.com/Talk-Point
[link-contributors]: ../../contributors

{'fraction_non_alphanumeric': 0.1599640933572711, 'fraction_numerical': 0.0, 'mean_word_length': 5.302036199095022, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5460690', 'n_tokens_mistral': 1947, 'n_tokens_neox': 1879, 'n_words': 387}