<commit_before><?php
/**
 * @author        "<NAME>" <<EMAIL>>
 * @package       Metrol\DBTable
 * @version       2.0
 * @copyright (c) 2016, <NAME>
 */

namespace Metrol\DBTable\Field\PostgreSQL;

use Metrol\DBTable\Field;

trait PropertyTrait
{
    /**
     * Is this field allowed to be set to null?
     *
     * @var boolean
     */
    private $nullOk = true;

    /**
     * Default value for this field, if such a default was set.
     *
     * @var mixed
     */
    private $defaultValue = null;

    /**
     * Is this field a primary key?
     *
     * @var boolean
     */
    private $primaryKey = false;

    /**
     * The UDT name of the field as reported by the query.
     *
     * @var string
     */
    private $udtName = '';

    /**
     * @inheritdoc
     */
    public function setNullOk($flag)
    {
        if ( $flag )
        {
            $this->nullOk = true;
        }
        else
        {
            $this->nullOk = false;
        }

        return $this;
    }

    /**
     * @inheritdoc
     */
    public function isNullOk()
    {
        return $this->nullOk;
    }

    /**
     * @inheritdoc
     */
    public function setDefaultValue($defaultValue)
    {
        $this->defaultValue = $defaultValue;

        return $this;
    }

    /**
     * @inheritdoc
     */
    public function getDefaultValue()
    {
        return $this->defaultValue;
    }

    /**
     * @inheritdoc
     */
    public function setPrimaryKey($flag)
    {
        if ( $flag )
        {
            $this->primaryKey = true;
        }
        else
        {
            $this->primaryKey = false;
        }

        return $this;
    }

    /**
     * @inheritdoc
     */
    public function isPrimaryKey()
    {
        return $this->primaryKey;
    }

    /**
     *
     * @return string
     */
    public function getUdtName()
    {
        return $this->udtName;
    }

    /**
     *
     * @param string $udtName
     *
     * @return $this
     */
    public function setUdtName($udtName)
    {
        $this->udtName = $udtName;

        return $this;
    }
}<commit_msg>Adjusts the property trait to reflect the Field interfaces changes<commit_after><?php
/**
 * @author        "<NAME>" <<EMAIL>>
 * @package       Metrol\DBTable
 * @version       2.0
 * @copyright (c) 2016, <NAME>
 */

namespace Metrol\DBTable\Field\PostgreSQL;

use Metrol\DBTable\Field;

trait PropertyTrait
{
    /**
     * Is this field allowed to be set to null?
     *
     * @var boolean
     */
    private $nullOk = true;

    /**
     * Default value for this field, if such a default was set.
     *
     * @var mixed
     */
    private $defaultValue = null;

    /**
     * Is this field a primary key?
     *
     * @var boolean
     */
    private $primaryKey = false;

    /**
     * The UDT name of the field as reported by the query.
     *
     * @var string
     */
    private $udtName = '';

    /**
     * @inheritdoc
     */
    public function setNullOk($flag)
    {
        if ( $flag )
        {
            $this->nullOk = true;
        }
        else
        {
            $this->nullOk = false;
        }

        return $this;
    }

    /**
     * @inheritdoc
     */
    public function isNullOk()
    {
        return $this->nullOk;
    }

    /**
     * @inheritdoc
     */
    public function setDefaultValue($defaultValue)
    {
        $this->defaultValue = $defaultValue;

        return $this;
    }

    /**
     * @inheritdoc
     */
    public function getDefaultValue()
    {
        return $this->defaultValue;
    }

    /**
     *
     * @return string
     */
    public function getDefinedType()
    {
        return $this->udtName;
    }

    /**
     *
     * @param string $typeName
     *
     * @return $this
     */
    public function setDefinedType($typeName)
    {
        $this->udtName = $typeName;

        return $this;
    }
}
{'fraction_non_alphanumeric': 0.1248715313463515, 'fraction_numerical': 0.003083247687564234, 'mean_word_length': 1.4285714285714286, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4034446', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1209, 'n_words': 280}