for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Asset Packagist.
*
* @link https://github.com/hiqdev/asset-packagist
* @package asset-packagist
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\assetpackagist\models;
use yii\base\Model;
class Release extends Model
{
* @var string release UID
public $uid;
* @var string release name
public $name;
* @var string the release version
public $version;
* @var array
public $dist;
public $source;
* @var array release requirements
public $require;
* @return bool whether the release is valid and can be used generally used
public function isValid()
return !empty($this->dist) || !empty($this->source);
}