Your IP : 216.73.217.79


Current Path : /var/www/v3.cesa.co.za/src/ContentBundle/Entity/
Upload File :
Current File : /var/www/v3.cesa.co.za/src/ContentBundle/Entity/FormItemType.php

<?php

namespace App\ContentBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * FormItemType
 *
 * @ORM\Table(name="content_form_item_type")
 * @ORM\Entity(repositoryClass="App\ContentBundle\Repository\FormItemTypeRepository")
 */
class FormItemType
{

    /**
     * @ORM\Id
     * @ORM\Column(type="string", unique=true)
     * @ORM\GeneratedValue(strategy="CUSTOM")
     * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $type_name;

    /**
     * @ORM\Column(type="string", length=50)
     */
    private $widget_name;

    public function getId(): ?string
    {
        return $this->id;
    }

    public function getTypeName(): ?string
    {
        return $this->type_name;
    }

    public function setTypeName(string $type_name): static
    {
        $this->type_name = $type_name;

        return $this;
    }

    public function getWidgetName(): ?string
    {
        return $this->widget_name;
    }

    public function setWidgetName(string $widget_name): static
    {
        $this->widget_name = $widget_name;

        return $this;
    }

    /**
     * Get object as string
     */
    public function __toString()
    {
        return (string) $this->getTypeName();
    }

    /**
     * Get object as array
     */
    public function getArray()
    {
        return array(
            'id' => $this->getId(),
            'typeName' => $this->getTypeName(),
            'widgetName' => $this->getWidgetName(),
        );
    }
}