<commit_before><?php
/**
 * This file is part of the GEquipe Application.
 *
 * PHP version 7.1
 *
 * (c) <NAME> <<EMAIL>>
 *
 * @category Entity
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2017 <NAME>
 * @license   GNU General Public License, version 3
 *
 * @link http://opensource.org/licenses/GPL-3.0
 */

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use \DateTime;

/**
 * Criticity Class
 *
 * @category Entity
 *
 * @author   <NAME> <<EMAIL>>
 * @license  GNU General Public License, version 3
 *
 * @link     http://opensource.org/licenses/GPL-3.0
 *
 * @ORM\Entity
 * @ORM\Table(name="te_criticity", options={"comment":"Cricity of equipment"})
 */
class Criticity implements InformationInterface
{
    /**
     * ID of the criticity.
     *
     * @var integer
     *
     * @ORM\Id
     * @ORM\Column(type="integer", options={"comment":"Identifiant of criticity"})
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * Name of the family.
     *
     * @var string
     *
     * @Assert\NotBlank()
     * @Assert\Length(max=16)
     *
     * @ORM\Column(type="string", length=16, nullable=false, options={"unsigned":true,"comment":"Name of the criticity"})
     */
    private $name;

    /**
     * Intervention period.
     *
     * @var string (Period string)
     *
     * @Assert\Length(max=8)
     *
     * @ORM\Column(type="string", length=8, nullable=false, options={"comment":"Intervention period"})
     */
    private $intervention;

    /**
     * Recovery period.
     *
     * @var string (Period string)
     *
     * @Assert\Length(max=8)
     *
     * @ORM\Column(type="string", length=8, nullable=false, options={"comment":"Recovery period"})
     */
    private $recovery;

    /**
     * Date time of creation of this object.
     *
     * @var Datetime
     *
     * @ORM\Column(type="datetime", nullable=false, options={"comment":"Creation datetime"})
     */
    private $created;

    /**
     * Date time of last update of this object.
     *
     * @var Datetime
     *
     * @ORM\Column(type="datetime", nullable=false, options={"comment":"Update datetime"})
     */
    private $updated;

    /**
     * Recovery period.
     *
     * @var string (Period string)
     *
     * @Assert\Length(max=8)
     *
     * @ORM\Column(type="string", length=8, nullable=true, options={"comment":"Average working time target (cible MTBF)"})
     */
    private $working;

    /**
     * Creator of this family.
     *
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\User")
     * @ORM\JoinColumn(name="creator", referencedColumnName="id", nullable=false)
     */<commit_msg>Gedmo annotations added<commit_after><?php
/**
 * This file is part of the GEquipe Application.
 *
 * PHP version 7.1
 *
 * (c) <NAME> <<EMAIL>>
 *
 * @category Entity
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2017 <NAME>
 * @license   GNU General Public License, version 3
 *
 * @link http://opensource.org/licenses/GPL-3.0
 */

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use \DateTime;

/**
 * Criticity Class
 *
 * @category Entity
 *
 * @author   <NAME> <<EMAIL>>
 * @license  GNU General Public License, version 3
 *
 * @link     http://opensource.org/licenses/GPL-3.0
 *
 * @ORM\Entity(repositoryClass="AppBundle\Entity\Repository\CriticityRepository")
 * @ORM\Table(name="te_criticity", options={"comment":"Cricity of equipment"})
 * @Gedmo\Loggable
 */
class Criticity implements InformationInterface
{
    /**
     * ID of the criticity.
     *
     * @var integer
     *
     * @ORM\Id
     * @ORM\Column(type="integer", options={"comment":"Identifiant of criticity"})
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * Name of the family.
     *
     * @var string
     *
     * @Assert\NotBlank()
     * @Assert\Length(max=16)
     *
     * @ORM\Column(type="string", length=16, nullable=false, options={"unsigned":true,"comment":"Name of the criticity"})
     * @Gedmo\Versioned
     */
    private $name;

    /**
     * Intervention period.
     *
     * @var string (Period string)
     *
     * @Assert\Length(max=8)
     *
     * @ORM\Column(type="string", length=8, nullable=false, options={"comment":"Intervention period"})
     * @Gedmo\Versioned
     */
    private $intervention;

    /**
     * Recovery period.
     *
     * @var string (Period string)
     *
     * @Assert\Length(max=8)
     *
     * @ORM\Column(type="string", length=8, nullable=false, options={"comment":"Recovery period"})
     * @Gedmo\Versioned
     */
    private $recovery;

    /**
     * Date time of creation of this object.
     *
     * @var Datetime
     *
     * @ORM\Column(type="datetime", nullable=false, options={"comment":"Creation datetime"})
     * @Gedmo\Timestampable(on="create")
     */
    private $created;

    /**
     * Date time of last update of this object.
     *
     * @var Datetime
     *
     * @ORM\Column(type="datetime", nullable=false, options={"comment":"Update datetime"})
     * @Gedmo\Timestampable(on="update")
     */
    private $updated;

    /**
     * Recovery period.
     *
     * @var string (Period string)
     *
     * @Assert\Length(max=8)
     *
     * @ORM\Column(type="string", length=8, nullable=true, options={"comment":"Average working time target (cible MTBF)"})
     * @Gedmo\Versioned
     */
    private $working;

    /**
     * Creator of this family.
     *
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\User")
     * @ORM\JoinColumn(name="creator", referencedColumnName="id", nullable=false)
     */
{'fraction_non_alphanumeric': 0.15966822187662, 'fraction_numerical': 0.007603248660791429, 'mean_word_length': 2.6448362720403025, 'pattern_counts': {'":': 18, '<': 25, '<?xml version=': 0, '>': 23, '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': '7640363', 'n_tokens_mistral': 1906, 'n_tokens_neox': 1847, 'n_words': 387}