for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Phossa Project
*
* PHP version 5.4
* @category Library
* @package Phossa2\Shared
* @copyright Copyright (c) 2016 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa2\Shared\Shareable;
use Phossa2\Shared\Base\ObjectAbstract;
* Shareable
* @author Hong Zhang <[email protected]>
* @see ObjectAbstract
* @see ShareableInterface
* @version 2.0.10
* @since 2.0.10 added
class Shareable extends ObjectAbstract implements ShareableInterface
{
use ShareableTrait;
* minimum constructor
* @param string $scope
* @access public
public function __construct(/*# string */ $scope = '')
// add scope if not empty
if ('' !== $scope) {
$this->addScope($scope);
}