<commit_before><?php

/**
 * This file is part of Jedisjeux
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Resource\Model\ResourceInterface;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @ORM\Entity
 * @ORM\Table("jdj_price_list")
 */
class PriceList implements ResourceInterface
{
    use IdentifiableTrait;

    /**
     * @var Dealer
     *
     * @ORM\OneToOne(targetEntity="Dealer", inversedBy="priceList")
     */
    protected $dealer;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $path;

    /**
     * @var boolean
     *
     * @ORM\Column(type="boolean")
     */
    protected $headers = false;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $delimiter = ';';

    /**
     * @var boolean
     *
     * @ORM\Column(type="boolean", name="is_utf8")
     */
    protected $utf8 = true;

    /**
     * @var boolean
     *
     * @ORM\Column(type="boolean")
     */
    protected $active = false;

    /**
     * @return Dealer
     */
    public function getDealer()
    {
        return $this->dealer;
    }

    /**
     * @param Dealer $dealer
     *
     * @return $this
     */
    public function setDealer($dealer)
    {
        $this->dealer = $dealer;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * @return boolean
     */
    public function hasHeaders()
    {
        return $this->headers;
    }

    /**
     * @param boolean $headers
     *
     * @return $this
     */
    public function setHeaders($headers)
    {
        $this->headers = $headers;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * @return bool
     */
    public function isUtf8()
    {
        return $this->utf8;
    }

    /**
     * @param bool $utf8
     *
     * @return $this
     */
    public function setUtf8($utf8)
    {
        $this->utf8 = $utf8;

        return $this;
    }

    /**
     * @return boolean
     */
    public function isActive()
    {
        return $this->active;
    }

    /**
     * @param boolean $active
     *
     * @return $this
     */
    public function setActive($active)
    {
        $this->active = $active;

        return $this;
    }
}<commit_msg>add typehints for price list entity<commit_after><?php

/**
 * This file is part of Jedisjeux
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Resource\Model\ResourceInterface;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @ORM\Entity
 * @ORM\Table("jdj_price_list")
 */
class PriceList implements ResourceInterface
{
    use IdentifiableTrait;

    /**
     * @var Dealer
     *
     * @ORM\OneToOne(targetEntity="Dealer", inversedBy="priceList")
     */
    protected $dealer;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $path;

    /**
     * @var boolean
     *
     * @ORM\Column(type="boolean")
     */
    protected $headers = false;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $delimiter = ';';

    /**
     * @var boolean
     *
     * @ORM\Column(type="boolean", name="is_utf8")
     */
    protected $utf8 = true;

    /**
     * @var boolean
     *
     * @ORM\Column(type="boolean")
     */
    protected $active = false;

    /**
     * @return Dealer|null
     */
    public function getDealer(): ?Dealer
    {
        return $this->dealer;
    }

    /**
     * @param Dealer|null $dealer
     */
    public function setDealer(?Dealer $dealer): void
    {
        $this->dealer = $dealer;
    }

    /**
     * @return string|null
     */
    public function getPath(): ?string
    {
        return $this->path;
    }

    /**
     * @param string|null $path
     */
    public function setPath(?string $path): void
    {
        $this->path = $path;
    }

    /**
     * @return boolean
     */
    public function hasHeaders(): bool
    {
        return $this->headers;
    }

    /**
     * @param boolean $headers
     */
    public function setHeaders(bool $headers): void
    {
        $this->headers = $headers;
    }

    /**
     * @return string|null
     */
    public function getDelimiter(): ?string
    {
        return $this->delimiter;
    }

    /**
     * @param string|null $delimiter
     */
    public function setDelimiter(?string $delimiter): void
    {
        $this->delimiter = $delimiter;
    }

    /**
     * @return bool
     */
    public function isUtf8(): bool
    {
        return $this->utf8;
    }

    /**
     * @param bool $utf8
     */
    public function setUtf8(bool $utf8): void
    {
        $this->utf8 = $utf8;
    }

    /**
     * @return boolean
     */
    public function isActive(): bool
    {
        return $this->active;
    }

    /**
     * @param boolean $active
     */
    public function setActive(bool $active): void
    {
        $this->active = $active;
    }
}
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.003032345013477089, 'mean_word_length': 1.7847091932457786, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 35, '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': '4650105', 'n_tokens_mistral': 1920, 'n_tokens_neox': 1877, 'n_words': 403}