b0y-101 Mini Shell


Current Path : E:/www/buriram/libraries/nextend2/smartslider/smartslider/libraries/slidebuilder/
File Upload :
Current File : E:/www/buriram/libraries/nextend2/smartslider/smartslider/libraries/slidebuilder/component.php

<?php

class N2SmartSliderSlideBuilderComponent {

    protected $defaultData = array();

    protected $data = array();


    public function set($keyOrData, $value = null) {

        if (is_array($keyOrData)) {
            foreach ($keyOrData AS $key => $value) {
                $this->setSingle($key, $value);
            }
        } else {
            $this->setSingle($keyOrData, $value);
        }

        return $this;
    }

    private function setSingle($key, $value) {
        $this->data[$key] = $value;
    }

    public function getData() {
        return array_merge($this->defaultData, $this->data);
    }

    /**
     * @param N2SmartSliderSlideBuilderComponent $component
     */
    public function add($component) {
    }
}

Copyright © 2019 by b0y-101