<commit_before># Value Obejct

[![Issue Count](https://codeclimate.com/github/sensorario/resources/badges/issue_count.svg)](https://codeclimate.com/github/sensorario/resources) [![Code Climate](https://codeclimate.com/github/sensorario/resources/badges/gpa.svg)](https://codeclimate.com/github/sensorario/resources) [![Latest Stable Version](https://poser.pugx.org/sensorario/resources/v/stable)](https://packagist.org/packages/sensorario/resources) [![Total Downloads](https://poser.pugx.org/sensorario/resources/downloads)](https://packagist.org/packages/sensorario/resources) [![Latest Unstable Version](https://poser.pugx.org/sensorario/resources/v/unstable)](https://packagist.org/packages/sensorario/resources) [![License](https://poser.pugx.org/sensorario/resources/license)](https://packagist.org/packages/sensorario/resources)

To create a new value object, extends Sensorario\Resources\Resource abstract class.

```php
use Sensorario\Resources\Resource;

final class MyValue extends Resources
{

}
```

## Define allowed properties

You must define all allowed properties

```php
public static function allowed()
{
    return [
        'property_name',
    ];
}
```

so then, you can define your value with the syntax:

```php<commit_msg>Fix readme file<commit_after># Value Obejct

[![Issue Count](https://codeclimate.com/github/sensorario/resources/badges/issue_count.svg)](https://codeclimate.com/github/sensorario/resources) [![Code Climate](https://codeclimate.com/github/sensorario/resources/badges/gpa.svg)](https://codeclimate.com/github/sensorario/resources) [![Latest Stable Version](https://poser.pugx.org/sensorario/resources/v/stable)](https://packagist.org/packages/sensorario/resources) [![Total Downloads](https://poser.pugx.org/sensorario/resources/downloads)](https://packagist.org/packages/sensorario/resources) [![Latest Unstable Version](https://poser.pugx.org/sensorario/resources/v/unstable)](https://packagist.org/packages/sensorario/resources) [![License](https://poser.pugx.org/sensorario/resources/license)](https://packagist.org/packages/sensorario/resources)

To create a new resource, extends Sensorario\Resources\Resource abstract class.

```php
use Sensorario\Resources\Resource;

final class MyValue extends Resources
{

}
```

## Define allowed properties

You must define all allowed properties

```php
public static function allowed()
{
    return [
        'property_name',
    ];
}
```

so then, you can define your value with the syntax:

```php
{'fraction_non_alphanumeric': 0.15396952686447474, 'fraction_numerical': 0.0, 'mean_word_length': 5.743243243243243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3416164', 'n_tokens_mistral': 777, 'n_tokens_neox': 748, 'n_words': 122}