Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
M2 content provisioning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TechDivision Public
M2 content provisioning
Commits
5380432b
Commit
5380432b
authored
8 months ago
by
Eduarda Lentz Rodrigues da Silva
Browse files
Options
Downloads
Patches
Plain Diff
ZERO-162 Created DTO
parent
7dec002c
No related branches found
No related tags found
1 merge request
!46
ZERO-162-changes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Model/DTO/FileDataDto.php
+228
-0
228 additions, 0 deletions
Model/DTO/FileDataDto.php
with
228 additions
and
0 deletions
Model/DTO/FileDataDto.php
0 → 100644
+
228
−
0
View file @
5380432b
<?php
declare
(
strict_types
=
1
);
namespace
Firegento\ContentProvisioning\Model\DTO
;
class
FileDataDto
{
/**
* @var string
*/
private
string
$identifier
;
/**
* @var string
*/
private
string
$title
;
/**
* @var string
*/
private
string
$key
;
/**
* @var string
*/
private
string
$content
;
/**
* @var string
*/
private
string
$stores
;
/**
* @var string
*/
private
string
$isActive
;
/**
* @var string
*/
private
string
$isMaintained
;
/**
* @param string $identifier
* @param string $title
* @param string $key
* @param string $content
* @param string $stores
* @param string $isActive
* @param string $isMaintained
*/
public
function
__construct
(
string
$identifier
,
string
$title
,
string
$key
,
string
$content
,
string
$stores
,
string
$isActive
,
string
$isMaintained
)
{
$this
->
identifier
=
$identifier
;
$this
->
title
=
$title
;
$this
->
key
=
$key
;
$this
->
content
=
$content
;
$this
->
stores
=
$stores
;
$this
->
isActive
=
$isActive
;
$this
->
isMaintained
=
$isMaintained
;
}
/**
* @return string
*/
public
function
getIdentifier
():
string
{
return
$this
->
identifier
;
}
/**
* @return string
*/
public
function
getTitle
():
string
{
return
$this
->
title
;
}
/**
* @return string
*/
public
function
getKey
():
string
{
return
$this
->
key
;
}
/**
* @return string
*/
public
function
getContent
():
string
{
return
$this
->
content
;
}
/**
* @return string
*/
public
function
getStores
():
string
{
return
$this
->
stores
;
}
/**
* @return string
*/
public
function
getIsActive
():
string
{
return
$this
->
isActive
;
}
/**
* @return string
*/
public
function
getIsMaintained
():
string
{
return
$this
->
isMaintained
;
}
/**
* @return string|array
*/
public
function
getStore
():
string
{
return
$this
->
stores
;
}
/**
* Set the identifier.
*
* @param string $identifier
* @return self
*/
public
function
setIdentifier
(
string
$identifier
):
self
{
$this
->
identifier
=
$identifier
;
return
$this
;
}
/**
* Set the title.
*
* @param string $title
* @return self
*/
public
function
setTitle
(
string
$title
):
self
{
$this
->
title
=
$title
;
return
$this
;
}
/**
* Set the key.
*
* @param string $key
* @return self
*/
public
function
setKey
(
string
$key
):
self
{
$this
->
key
=
$key
;
return
$this
;
}
/**
* Set the content.
*
* @param string $content
* @return self
*/
public
function
setContent
(
string
$content
):
self
{
$this
->
content
=
$content
;
return
$this
;
}
/**
* Set the stores.
*
* @param string $stores
* @return self
*/
public
function
setStores
(
string
$stores
):
self
{
$this
->
stores
=
$stores
;
return
$this
;
}
/**
* Set isActive status.
*
* @param string $isActive
* @return self
*/
public
function
setIsActive
(
string
$isActive
):
self
{
$this
->
isActive
=
$isActive
;
return
$this
;
}
/**
* Set isMaintained status.
*
* @param string $isMaintained
* @return self
*/
public
function
setIsMaintained
(
string
$isMaintained
):
self
{
$this
->
isMaintained
=
$isMaintained
;
return
$this
;
}
/**
* @param string|array $store
* @return $this
*/
public
function
setStore
(
string
$store
):
self
{
$this
->
stores
=
$store
;
return
$this
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment