Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
VisibilityShare example
public
static
function
fromNotification
(
Notification
$notification
)
: self
{
$options
=
new
self
(
)
;
$options
->
specificContent
(
new
ShareContentShare
(
$notification
->
getSubject
(
)
)
)
;
if
(
$notification
->
getContent
(
)
)
{
$options
->
specificContent
(
new
ShareContentShare
(
$notification
->
getContent
(
)
)
)
;
}
$options
->
visibility
(
new
VisibilityShare
(
)
)
;
$options
->
lifecycleState
(
new
LifecycleStateShare
(
)
)
;
return
$options
;
}
/** * @return $this */
public
function
contentCertificationRecord
(
string
$contentCertificationRecord
)
:
static
{
$this
->options
[
'contentCertificationRecord'
]
=
$contentCertificationRecord
;