for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/** @formatter:off
* ******************************************************************
* Created by Marko Kungla on Jul 7, 2016 - 1:48:03 AM
* Contact [email protected]
* @copyright 2016 Marko Kungla - https://github.com/mkungla
* @license The MIT License (MIT)
*
* @category AframeVR
* @package aframe-php
* Lang PHP (php version >= 7)
* Encoding UTF-8
* File VRmodeUIComponent.php
* Code format PSR-2 and 12
* @link https://github.com/mkungla/aframe-php
* @issues https://github.com/mkungla/aframe-php/issues
* ********************************************************************
* Contributors:
* @author Marko Kungla <[email protected]>
* Comments:
* @formatter:on */
namespace AframeVR\Core\Components\ascene\VRmodeUI;
use \AframeVR\Interfaces\Core\Components\ascene\VRmodeUICMPTIF;
use \AframeVR\Core\Helpers\ComponentAbstract;
class VRmodeUIComponent extends ComponentAbstract implements VRmodeUICMPTIF
{
/**
* Initialize Component
* {@inheritdoc}
* @return bool
*/
public function initializeComponent(): bool
$this->setDomAttribute('vr-mode-ui');
$this->enabled();
return true;
}
* look-controls enabled
* @param bool $enabled
* @return VRmodeUICMPTIF
public function enabled(bool $enabled = true): VRmodeUICMPTIF
$this->dom_attributes['enabled'] = $enabled ? 'true' : 'false';
return $this;
* Does component have DOM Atributes
* If compnent is called then we return true
public function hasDOMAttributes(): bool