<?php/** * Created by PhpStorm. * User: parcel * Date: 10/19/18 * Time: 12:52 PM */namespace App\Entity;use Doctrine\ORM\Mapping as ORM;use JMS\Serializer\Annotation as Serializer;/** * @ORM\Entity * @ORM\Table(name="automatic_expense") */class AutomaticExpense { /** * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="float") */ private $amount; /** * @ORM\Column(type="boolean") */ private $isActive; /** * @ORM\Column(type="boolean") */ private $isSms; /** * @ORM\Column(type="boolean") */ private $isSystem; /** * @ORM\Column(type="string", length=45) */ private $expenseName; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @var App\Entity\User * @Serializer\Type("App\Entity\User") * @ORM\ManyToOne(targetEntity="App\Entity\User") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="created_by", referencedColumnName="id") * }) */ private $createdBy; /** * @return mixed */ public function getId() { return $this->id; } /** * @param mixed $id */ public function setId($id) { $this->id = $id; } /** * @return mixed */ public function getAmount() { return $this->amount; } /** * @param mixed $amount */ public function setAmount($amount) { $this->amount = $amount; } /** * @return mixed */ public function getisActive() { return $this->isActive; } /** * @param mixed $isActive */ public function setIsActive($isActive) { $this->isActive = $isActive; } /** * @return mixed */ public function getisSms() { return $this->isSms; } /** * @param mixed $isSms */ public function setIsSms($isSms) { $this->isSms = $isSms; } /** * @return mixed */ public function getisSystem() { return $this->isSystem; } /** * @param mixed $isSystem */ public function setIsSystem($isSystem) { $this->isSystem = $isSystem; } /** * @return mixed */ public function getExpenseName() { return $this->expenseName; } /** * @param mixed $expenseName */ public function setExpenseName($expenseName) { $this->expenseName = $expenseName; } /** * @return mixed */ public function getCreatedAt() { return $this->createdAt; } /** * @param mixed $createdAt */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; } /** * @return User */ public function getCreatedBy() { return $this->createdBy; } /** * @param User $createdBy */ public function setCreatedBy($createdBy) { $this->createdBy = $createdBy; }}