<commit_before><?php

/**
 * This file is part of the Lean Mapper library (http://www.leanmapper.com)
 *
 * Copyright (c) 2013 <NAME> (aka Tharos)
 *
 * For the full copyright and license information, please view the file
 * license-mit.txt that was distributed with this source code.
 */

namespace LeanMapper\Reflection;

use LeanMapper\Exception\InvalidArgumentException;
use LeanMapper\Exception\InvalidMethodCallException;
use LeanMapper\Relationship\BelongsToMany;
use LeanMapper\Relationship\BelongsToOne;
use LeanMapper\Relationship\HasMany;
use LeanMapper\Relationship\HasOne;

/**
 * Entity property (field) reflection
 *
 * @author <NAME>
 */
class Property
{

	/** @var string */
	private $name;

	/** @var string|null */
	private $column;

	/** @var PropertyType */
	private $type;

	/** @var bool */
	private $isWritable;

	/** @var bool */
	private $isNullable;

	/** @var bool */
	private $containsCollection;

	/** @var HasOne|HasMany|BelongsToOne|BelongsToMany|null */
	private $relationship;

	/** @var PropertyMethods|null */
	private $propertyMethods;

	/** @var PropertyFilters|null */
	private $propertyFilters;

	/** @var PropertyPasses|null */
	private $propertyPasses;

	/** @var PropertyValuesEnum|null */
	private $propertyValuesEnum;

	/** @var array */
	private $customFlags;


	/**
	 * @param string $name
	 * @param string|null $column
	 * @param PropertyType $type
	 * @param bool $isWritable
	 * @param bool $isNullable
	 * @param bool $containsCollection
	 * @param HasOne|HasMany|BelongsToOne|BelongsToMany|null $relationship
	 * @param PropertyMethods|null $propertyMethods
	 * @param PropertyFilters|null $propertyFilters
	 * @param PropertyPasses|null $propertyPasses
	 * @param PropertyValuesEnum|null $propertyValuesEnum
	 * @param array|null $customFlags
	 */
	public function __construct($name, $column, PropertyType $type, $isWritable, $isNullable, $containsCollection, $relationship = null, PropertyMethods $propertyMethods = null, PropertyFilters $propertyFilters = null, $propertyPasses = null, PropertyValuesEnum $propertyValuesEnum = null, array $customFlags = array())
	{
		$this->name = $name;
		$this->column = $column;
		$this->type = $type;
		$this->isWritable = $isWritable;
		$this->isNullable = $isNullable;
		$this->containsCollection = $containsCollection;
		$this->relationship = $relationship;
		$this->propertyMethods = $propertyMethods;
		$this->propertyFilters = $propertyFilters;
		$this->propertyPasses = $propertyPasses;
		$this->propertyValuesEnum = $propertyValuesEnum;
		$this->customFlags = $customFlags;

	}
<commit_msg>Typo (missing typehint in Property::__construct)<commit_after><?php

/**
 * This file is part of the Lean Mapper library (http://www.leanmapper.com)
 *
 * Copyright (c) 2013 <NAME> (aka Tharos)
 *
 * For the full copyright and license information, please view the file
 * license-mit.txt that was distributed with this source code.
 */

namespace LeanMapper\Reflection;

use LeanMapper\Exception\InvalidArgumentException;
use LeanMapper\Exception\InvalidMethodCallException;
use LeanMapper\Relationship\BelongsToMany;
use LeanMapper\Relationship\BelongsToOne;
use LeanMapper\Relationship\HasMany;
use LeanMapper\Relationship\HasOne;

/**
 * Entity property (field) reflection
 *
 * @author <NAME>
 */
class Property
{

	/** @var string */
	private $name;

	/** @var string|null */
	private $column;

	/** @var PropertyType */
	private $type;

	/** @var bool */
	private $isWritable;

	/** @var bool */
	private $isNullable;

	/** @var bool */
	private $containsCollection;

	/** @var HasOne|HasMany|BelongsToOne|BelongsToMany|null */
	private $relationship;

	/** @var PropertyMethods|null */
	private $propertyMethods;

	/** @var PropertyFilters|null */
	private $propertyFilters;

	/** @var PropertyPasses|null */
	private $propertyPasses;

	/** @var PropertyValuesEnum|null */
	private $propertyValuesEnum;

	/** @var array */
	private $customFlags;


	/**
	 * @param string $name
	 * @param string|null $column
	 * @param PropertyType $type
	 * @param bool $isWritable
	 * @param bool $isNullable
	 * @param bool $containsCollection
	 * @param HasOne|HasMany|BelongsToOne|BelongsToMany|null $relationship
	 * @param PropertyMethods|null $propertyMethods
	 * @param PropertyFilters|null $propertyFilters
	 * @param PropertyPasses|null $propertyPasses
	 * @param PropertyValuesEnum|null $propertyValuesEnum
	 * @param array|null $customFlags
	 */
	public function __construct($name, $column, PropertyType $type, $isWritable, $isNullable, $containsCollection, $relationship = null, PropertyMethods $propertyMethods = null, PropertyFilters $propertyFilters = null, PropertyPasses $propertyPasses = null, PropertyValuesEnum $propertyValuesEnum = null, array $customFlags = array())
	{
		$this->name = $name;
		$this->column = $column;
		$this->type = $type;
		$this->isWritable = $isWritable;
		$this->isNullable = $isNullable;
		$this->containsCollection = $containsCollection;
		$this->relationship = $relationship;
		$this->propertyMethods = $propertyMethods;
		$this->propertyFilters = $propertyFilters;
		$this->propertyPasses = $propertyPasses;
		$this->propertyValuesEnum = $propertyValuesEnum;
		$this->customFlags = $customFlags;

	}

{'fraction_non_alphanumeric': 0.126862820022927, 'fraction_numerical': 0.0015284677111196026, 'mean_word_length': 5.003440366972477, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1060242', 'n_tokens_mistral': 1633, 'n_tokens_neox': 1551, 'n_words': 387}