Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Backend Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Backend Server
Commits
57a5b2f4
Commit
57a5b2f4
authored
Mar 31, 2020
by
Andreas Heimann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ad entity
parent
01ef2aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
142 additions
and
0 deletions
+142
-0
src/Entity/Ad.php
src/Entity/Ad.php
+142
-0
No files found.
src/Entity/Ad.php
0 → 100644
View file @
57a5b2f4
<?php
namespace
App\Entity
;
use
Doctrine\ORM\Mapping
as
ORM
;
/**
* @ORM\Entity(repositoryClass="App\Repository\AdRepository")
*/
class
Ad
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private
$id
;
/**
* @ORM\Column(type="string", length=255)
*/
private
$title
;
/**
* @ORM\Column(type="string", length=255)
*/
private
$type
;
/**
* @ORM\Column(type="string", length=7)
*/
private
$color
;
/**
* @ORM\Column(type="integer")
*/
private
$buttonType
;
/**
* @ORM\Column(type="string", length=255)
*/
private
$buttonData
;
/**
* @ORM\Column(type="boolean")
*/
private
$isVisible
;
/**
* @ORM\Column(type="string", length=255)
*/
private
$imagePath
;
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
getType
()
:
?
string
{
return
$this
->
type
;
}
public
function
setType
(
string
$type
)
:
self
{
$this
->
type
=
$type
;
return
$this
;
}
public
function
getColor
()
:
?
string
{
return
$this
->
color
;
}
public
function
setColor
(
string
$color
)
:
self
{
$this
->
color
=
$color
;
return
$this
;
}
public
function
getButtonType
()
:
?
int
{
return
$this
->
buttonType
;
}
public
function
setButtonType
(
int
$buttonType
)
:
self
{
$this
->
buttonType
=
$buttonType
;
return
$this
;
}
public
function
getButtonData
()
:
?
string
{
return
$this
->
buttonData
;
}
public
function
setButtonData
(
string
$buttonData
)
:
self
{
$this
->
buttonData
=
$buttonData
;
return
$this
;
}
public
function
getIsVisible
()
:
?
bool
{
return
$this
->
isVisible
;
}
public
function
setIsVisible
(
bool
$isVisible
)
:
self
{
$this
->
isVisible
=
$isVisible
;
return
$this
;
}
public
function
getImagePath
()
:
?
string
{
return
$this
->
imagePath
;
}
public
function
setImagePath
(
string
$imagePath
)
:
self
{
$this
->
imagePath
=
$imagePath
;
return
$this
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment