forked from wallabag/wallabag
Added headers field in Entry
This commit is contained in:
@ -201,6 +201,15 @@ class Entry
|
||||
*/
|
||||
private $httpStatus;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*
|
||||
* @ORM\Column(name="headers", type="json_array", nullable=true)
|
||||
*
|
||||
* @Groups({"entries_for_user", "export_all"})
|
||||
*/
|
||||
private $headers;
|
||||
|
||||
/**
|
||||
* @Exclude
|
||||
*
|
||||
@ -716,7 +725,7 @@ class Entry
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return array
|
||||
*/
|
||||
public function getPublishedBy()
|
||||
{
|
||||
@ -734,4 +743,24 @@ class Entry
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getHeaders()
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $headers
|
||||
*
|
||||
* @return Entry
|
||||
*/
|
||||
public function setHeaders($headers)
|
||||
{
|
||||
$this->headers = $headers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user