Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec370baa45 | |||
| aca9694723 |
@@ -309,16 +309,16 @@ final class request
|
|||||||
*/
|
*/
|
||||||
public bool $smartphone {
|
public bool $smartphone {
|
||||||
// Read
|
// Read
|
||||||
get() {
|
get {
|
||||||
if (!isset($this->{__PROPERTY__})) {
|
if (!isset($this->smartphone)) {
|
||||||
// The property is not initialized
|
// The property is not initialized
|
||||||
|
|
||||||
// Writing into the property
|
// Writing into the property
|
||||||
$this->{__PROPERTY__} = new mobile()->isMobile();
|
$this->smartphone = new mobile()->isMobile();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exit (success)
|
// Exit (success)
|
||||||
return $this->{__PROPERTY__};
|
return $this->smartphone;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,16 +331,16 @@ final class request
|
|||||||
*/
|
*/
|
||||||
public bool $tablet {
|
public bool $tablet {
|
||||||
// Read
|
// Read
|
||||||
get() {
|
get {
|
||||||
if (!isset($this->{__PROPERTY__})) {
|
if (!isset($this->tablet)) {
|
||||||
// The property is not initialized
|
// The property is not initialized
|
||||||
|
|
||||||
// Writing into the property
|
// Writing into the property
|
||||||
$this->{__PROPERTY__} = new mobile()->isTablet();
|
$this->tablet = new mobile()->isTablet();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exit (success)
|
// Exit (success)
|
||||||
return $this->{__PROPERTY__};
|
return $this->tablet;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user