Scope implements Stringable, JsonSerializable
FinalYes
Representation of a specific application type scope (backend, frontend), which can optionally be enriched by site-related details.
Table of Contents
Interfaces
- Stringable
- JsonSerializable
Properties
- $site : Site|null
- $siteIdentifier : string|null
- $type : ApplicationType
Methods
- __toString() : string
- backend() : self
- from() : self
- frontend() : self
- frontendSite() : self
- frontendSiteIdentifier() : self
- isFrontendSite() : bool
- jsonSerialize() : string
- reset() : void
- tryFrom() : self|null
Properties
$site read-only
actually just @internal
- but it might be removed later
public
Site|null
$site
$siteIdentifier read-only
public
string|null
$siteIdentifier
= null
$type read-only
public
ApplicationType
$type
Methods
__toString()
public
__toString() : string
Return values
stringbackend()
public
static backend() : self
Return values
selffrom()
public
static from(string $value) : self
Parameters
- $value : string
Return values
selffrontend()
public
static frontend() : self
Return values
selffrontendSite()
public
static frontendSite(SiteInterface|null $site) : self
Parameters
- $site : SiteInterface|null
might be removed later
Return values
selffrontendSiteIdentifier()
public
static frontendSiteIdentifier(string $siteIdentifier) : self
Parameters
- $siteIdentifier : string
Return values
selfisFrontendSite()
public
isFrontendSite() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : string
Return values
stringreset()
public
static reset() : void
tryFrom()
public
static tryFrom(string $value) : self|null
Parameters
- $value : string