Spot\Entity::__construct PHP Method

__construct() public method

Constructor - allows setting of object properties with array on construct
public __construct ( array $data = [] )
$data array
    public function __construct(array $data = array())
    {
        // Generate Unique object ID
        $this->_objectId = uniqid('entity_', true) . spl_object_hash($this);
        $this->initFields();
        // Set given data
        if ($data) {
            $this->data($data, false);
        }
    }