<?php
/**
* Created by PhpStorm.
* User: mfigueroa
* Date: 03/09/2018
* Time: 17:53
*/
namespace App\Entity;
use App\Repository\ConfigurationRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints as DoctrineAssert;
/**
* @ORM\Entity(repositoryClass=ConfigurationRepository::class)
* @ORM\Table("configuration")
*/
class Configuration
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var string $name
*
* @ORM\Column(type="string", nullable=true)
*/
protected $name;
/**
* @var string $email
*
* @ORM\Column(type="string", nullable=true)
*/
protected $email;
/**
* @var string $email_receivers
*
* @ORM\Column(type="string", nullable=true)
*/
protected $email_receivers;
/**
* @var string $phone
*
* @ORM\Column(type="string", nullable=true)
*/
protected $phone;
/**
* @var string $url_instagram
*
* @ORM\Column(type="string", nullable=true)
*/
protected $url_instagram;
/**
* @var string $address
*
* @ORM\Column(type="string", nullable=true)
*/
protected $address;
/**
* @var string $schedule
*
* @ORM\Column(type="string", nullable=true)
*/
protected $schedule;
public function __toString(): string
{
return $this->name;
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): static
{
$this->email = $email;
return $this;
}
public function getEmailReceivers(): ?string
{
return $this->email_receivers;
}
public function setEmailReceivers(?string $email_receivers): static
{
$this->email_receivers = $email_receivers;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): static
{
$this->phone = $phone;
return $this;
}
public function getUrlInstagram(): ?string
{
return $this->url_instagram;
}
public function setUrlInstagram(?string $url_instagram): static
{
$this->url_instagram = $url_instagram;
return $this;
} public function getAddress(): ?string { return $this->address; } public function setAddress(?string $address): static { $this->address = $address; return $this; } public function getSchedule(): ?string { return $this->schedule; } public function setSchedule(?string $schedule): static { $this->schedule = $schedule; return $this; }
}