hiqdev\assetpackagist\models\AssetPackage::__construct PHP Method

__construct() public method

public __construct ( $type, $name, $config = [] )
    public function __construct($type, $name, $config = [])
    {
        parent::__construct($config);
        if (!$this->checkType($type)) {
            throw new Exception('wrong type');
        }
        if (!$this->checkName($name)) {
            throw new Exception('wrong name');
        }
        $this->_type = $type;
        $this->_name = $name;
    }