Select Git revision
Laurent Lecluse authored
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();
}
}