Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
translateSelector example
return
$this
;
}
public
function
hasFlag
(
int
$flag
)
: bool
{
return
(bool)
(
$this
->flags &
$flag
)
;
}
public
function
getNodeTranslators
(
)
: array
{
return
[
'Selector' =>
$this
->
translateSelector
(
...
)
,
'CombinedSelector' =>
$this
->
translateCombinedSelector
(
...
)
,
'Negation' =>
$this
->
translateNegation
(
...
)
,
'Function' =>
$this
->
translateFunction
(
...
)
,
'Pseudo' =>
$this
->
translatePseudo
(
...
)
,
'Attribute' =>
$this
->
translateAttribute
(
...
)
,
'Class' =>
$this
->
translateClass
(
...
)
,
'Hash' =>
$this
->
translateHash
(
...
)
,
'Element' =>
$this
->
translateElement
(
...
)
,
]
;
}