<?php
namespace App\Entity;
use App\Entity\ProInfo;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\SponsorRepository;
#[ORM\Entity(repositoryClass: SponsorRepository::class)]
class Sponsor
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $name;
#[ORM\Column(type: 'string', length: 255)]
private $logo;
#[ORM\ManyToOne(targetEntity: ProInfo::class, inversedBy: 'sponsors')]
private $owner;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getLogo()
{
return $this->logo;
}
public function setLogo($logo)
{
$this->logo = $logo;
return $this;
}
public function getOwner(): ?ProInfo
{
return $this->owner;
}
public function setOwner(?ProInfo $owner): self
{
$this->owner = $owner;
return $this;
}
}