<?php
namespace App\Entity;
use App\Repository\FinanceRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FinanceRepository::class)
*/
class Finance
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @ORM\Column(type="decimal", precision=10, scale=2)
*/
private $rising;
/**
* @ORM\ManyToOne(targetEntity=UserPlatform::class)
* @ORM\JoinColumn(nullable=false)
*/
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getRising(): ?string
{
return $this->rising;
}
public function setRising(string $rising): self
{
$this->rising = $rising;
return $this;
}
public function getUser(): ?UserPlatform
{
return $this->user;
}
public function setUser(?UserPlatform $user): self
{
$this->user = $user;
return $this;
}
}