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 4, 2016 - 3:14:06 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 LookControlsComponent.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\LookControls;
use \AframeVR\Interfaces\Core\Components\LookControlsCMPTIF;
use \AframeVR\Core\Helpers\ComponentAbstract;
class LookControlsComponent extends ComponentAbstract implements LookControlsCMPTIF
{
/**
* Does component have DOM Atributes
* If compnent is called then we return true
* {@inheritdoc}
* @return bool
*/
public function hasDOMAttributes(): bool
return true;
}
* Initialize Component
public function initializeComponent(): bool
$this->setDomAttribute('look-controls');
$this->enabled();
* look-controls enabled
* @param bool $enabled
* @return LookControlsCMPTIF
public function enabled(bool $enabled = true): LookControlsCMPTIF
$this->dom_attributes['enabled'] = $enabled ? 'true' : 'false';
return $this;