Skip to content
Snippets Groups Projects
Commit 5380432b authored by Eduarda Lentz Rodrigues da Silva's avatar Eduarda Lentz Rodrigues da Silva
Browse files

ZERO-162 Created DTO

parent 7dec002c
No related branches found
No related tags found
1 merge request!46ZERO-162-changes
<?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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment