<commit_before><?php

namespace AppBundle\Entity;

use AppBundle\Entity\Report\Report;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;

/**
 * Client.
 *
 * @ORM\Table(name="client", indexes={@ORM\Index(name="case_number_idx", columns={"case_number"})})
 * @ORM\Entity
 */
class Client
{
    /**
     * @var int
     *
     * @JMS\Groups({"related","basic", "client", "client-id"})
     * @JMS\Type("integer")
     * @JMS\Groups({"client"})
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     * @ORM\SequenceGenerator(sequenceName="client_id_seq", allocationSize=1, initialValue=1)
     */
    private $id;

    /**
     * @JMS\Groups({"user"})
     * @JMS\Accessor(getter="getUserIds")
     * @JMS\Type("array")
     * @ORM\ManyToMany(targetEntity="AppBundle\Entity\User", inversedBy="clients")
     * @ORM\JoinTable(name="deputy_case",
     *         joinColumns={@ORM\JoinColumn(name="client_id", referencedColumnName="id", onDelete="CASCADE")},
     *         inverseJoinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")}
     *     )
     */
    private $users;

    /**
     * @JMS\Groups({"report"})
     * @JMS\Type("array")
     * @ORM\OneToMany(targetEntity="AppBundle\Entity\Report\Report", mappedBy="client", cascade={"persist"})
     */
    private $reports;

    /**
     * @JMS\Groups({"basic", "odr", "odr_id"})
     * @JMS\Type("AppBundle\Entity\Odr\Odr")
     * @ORM\OneToOne(targetEntity="AppBundle\Entity\Odr\Odr", mappedBy="client", cascade={"persist"})
     **/
    private $odr;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="case_number", type="string", length=20, nullable=true)
     */
    private $caseNumber;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="email", type="string", length=60, nullable=true)
     */
    private $email;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="phone", type="string", length=20, nullable=true)
     */
    private $phone;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="address", type="string", length=200, nullable=true)
     */
    private $address;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="address2", type="string", length=200, nullable=true)
     */
    private $address2;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="county", type="string", length=75, nullable=true)
     */
    private $county;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="postcode", type="string", length=10, nullable=true)
     */
    private $postcode;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="country", type="string", length=10, nullable=true)
     */
    private $country;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="firstname", type="string", length=50, nullable=true)
     */
    private $firstname;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="lastname", type="string", length=50, nullable=true)
     */
    private $lastname;

    /**
     * @JMS\Type("DateTime<'Y-m-d'>")
     * @JMS\Groups({"client"})
     *
     * @var \Date
     *
     * @ORM\Column(name="court_date", type="date", nullable=true)
     */
    private $courtDate;

    /**
     * @JMS\Exclude
     *
     * @var \DateTime
     *
     * @ORM\Column(name="last_edit", type="datetime", nullable=true)
     */
    private $lastedit;

    /**
     * @JMS\Type("DateTime<'Y-m-d'>")
     * @JMS\Groups({"client"})
     *
     * @var \Date
     *
     * @ORM\Column(name="date_of_birth", type="date", nullable=true)
     */
    private $dateOfBirth;

    /**
     * @var ArrayCollection
     *
     * @JMS\Type("ArrayCollection<AppBundle\Entity\Note>")
     * @JMS\Groups({"notes"})
     * @ORM\OneToMany(targetEntity="AppBundle\Entity\Note", mappedBy="client", cascade={"persist"})
     */
    private $notes;

    /**
     * Constructor.
     */
    public function __construct()
    {
        $this->users = new ArrayCollection();
        $this->reports = new ArrayCollection();
        $this->notes = new ArrayCollection();
    }

    /**
     * Get id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set caseNumber.
     *
     * @param string $caseNumber
     *
     * @return Client
     */
    public function setCaseNumber($caseNumber)<commit_msg>rest-jms-check mmerge master into branch<commit_after><?php

namespace AppBundle\Entity;

use AppBundle\Entity\Report\Report;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;

/**
 * Client.
 *
 * @ORM\Table(name="client", indexes={@ORM\Index(name="case_number_idx", columns={"case_number"})})
 * @ORM\Entity
 */
class Client
{
    /**
     * @var int
     *
     * @JMS\Groups({"related","basic", "client", "client-id"})
     * @JMS\Type("integer")
     * @JMS\Groups({"client"})
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     * @ORM\SequenceGenerator(sequenceName="client_id_seq", allocationSize=1, initialValue=1)
     */
    private $id;

    /**
     * @JMS\Groups({"user"})
     * @JMS\Accessor(getter="getUserIds")
     * @JMS\Type("array")
     * @ORM\ManyToMany(targetEntity="AppBundle\Entity\User", inversedBy="clients")
     * @ORM\JoinTable(name="deputy_case",
     *         joinColumns={@ORM\JoinColumn(name="client_id", referencedColumnName="id", onDelete="CASCADE")},
     *         inverseJoinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")}
     *     )
     */
    private $users;

    /**
     * @JMS\Groups({"report"})
     * @JMS\Type("array")
     * @ORM\OneToMany(targetEntity="AppBundle\Entity\Report\Report", mappedBy="client", cascade={"persist"})
     */
    private $reports;

    /**
     * @JMS\Groups({"basic", "odr", "odr_id"})
     * @JMS\Type("AppBundle\Entity\Odr\Odr")
     * @ORM\OneToOne(targetEntity="AppBundle\Entity\Odr\Odr", mappedBy="client", cascade={"persist"})
     **/
    private $odr;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="case_number", type="string", length=20, nullable=true)
     */
    private $caseNumber;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="email", type="string", length=60, nullable=true)
     */
    private $email;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="phone", type="string", length=20, nullable=true)
     */
    private $phone;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="address", type="string", length=200, nullable=true)
     */
    private $address;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="address2", type="string", length=200, nullable=true)
     */
    private $address2;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="county", type="string", length=75, nullable=true)
     */
    private $county;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="postcode", type="string", length=10, nullable=true)
     */
    private $postcode;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="country", type="string", length=10, nullable=true)
     */
    private $country;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="firstname", type="string", length=50, nullable=true)
     */
    private $firstname;

    /**
     * @JMS\Type("string")
     * @JMS\Groups({"client"})
     *
     * @var string
     *
     * @ORM\Column(name="lastname", type="string", length=50, nullable=true)
     */
    private $lastname;

    /**
     * @JMS\Type("DateTime<'Y-m-d'>")
     * @JMS\Groups({"client"})
     *
     * @var \Date
     *
     * @ORM\Column(name="court_date", type="date", nullable=true)
     */
    private $courtDate;

    /**
     * @JMS\Exclude
     *
     * @var \DateTime
     *
     * @ORM\Column(name="last_edit", type="datetime", nullable=true)
     */
    private $lastedit;

    /**
     * @JMS\Type("DateTime<'Y-m-d'>")
     * @JMS\Groups({"client"})
     *
     * @var \Date
     *
     * @ORM\Column(name="date_of_birth", type="date", nullable=true)
     */
    private $dateOfBirth;

    /**
     * @var ArrayCollection
     *
     * @JMS\Type("ArrayCollection<AppBundle\Entity\Note>")
     * @JMS\Groups({"notes"})
     * @ORM\OneToMany(targetEntity="AppBundle\Entity\Note", mappedBy="client", cascade={"persist"})
     * @ORM\OrderBy({"createdOn"="DESC"})
     */
    private $notes;

    /**
     * Constructor.
     */
    public function __construct()
    {
        $this->users = new ArrayCollection();
        $this->reports = new ArrayCollection();
        $this->notes = new ArrayCollection();
    }

    /**
     * Get id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set caseNumber.
     *
     * @param string $caseNumber
     *
     * @return Client
     */
    public function setCaseNumber($caseNumber)
{'fraction_non_alphanumeric': 0.19613929576098554, 'fraction_numerical': 0.005044136191677175, 'mean_word_length': 2.430948419301165, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '2113036', 'n_tokens_mistral': 3698, 'n_tokens_neox': 3563, 'n_words': 476}