Skip to content
Snippets Groups Projects
Select Git revision
  • ll-php8
  • master default protected
  • php84
  • detached4
  • detached5
  • detached3
  • detached
  • detached2
  • ll-php8-bs5
  • 4.x
  • 6.3.0
  • 6.2.5
  • 6.2.4
  • 6.2.3
  • 6.2.2
  • 6.2.1
  • 6.2.0
  • 6.1.0
  • 6.0.2
  • 6.0.1
  • 6.0.0
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 5.0
  • 4.2.1
  • 4.2
  • 4.1
  • 4.0
  • 3.0.2
30 results

Column.php

Blame
  • Laurent Lécluse's avatar
    Laurent Lecluse authored
    9da3ee36
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Column.php 1.79 KiB
    <?php
    
    namespace UnicaenTbl\Entity;
    
    class Column
    {
    
        /**
         * Nom de la colonne du tableau de bord
         *
         * @var string
         */
        protected $name;
    
        /**
         * @var bool
         */
        protected $nullable;
    
        /**
         * @var bool
         */
        protected $key;
    
        /**
         * @var bool
         */
        protected $inView = true;
    
    
    
        /**
         * @return string
         */
        public function getName()
        {
            return $this->name;
        }
    
    
    
        /**
         * @param string $name
         *
         * @return Column
         */
        public function setName($name)
        {
            $this->name = $name;
    
            return $this;
        }
    
    
    
        /**
         * @return bool
         */
        public function isNullable()
        {
            return $this->nullable;
        }
    
    
    
        /**
         * @param bool $nullable
         *
         * @return Column
         */
        public function setNullable($nullable)
        {
            $this->nullable = $nullable;
    
            return $this;
        }
    
    
    
        /**
         * @return bool
         */
        public function isKey()
        {
            return $this->key;
        }
    
    
    
        /**
         * @param bool $key
         *
         * @return Column
         */
        public function setKey($key)
        {
            $this->key = $key;
    
            return $this;
        }
    
    
    
        /**
         * @return bool
         */
        public function isInView(): bool
        {
            return $this->inView;
        }
    
    
    
        /**
         * @param bool $inView
         *
         * @return Column
         */
        public function setInView(bool $inView): Column
        {
            $this->inView = $inView;
    
            return $this;
        }
    
    
    
        /**
         * The __toString method allows a class to decide how it will react when it is converted to a string.
         *
         * @return string
         * @link http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring
         */
        function __toString()
        {
            return $this->getName();
        }
    
    }