for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BaoPham\DynamoDb\ConditionAnalyzer;
class Index
{
/**
* @var string
*/
public $name;
public $hash;
public $range;
public function __construct($name, $hash, $range)
$this->name = $name;
$this->hash = $hash;
$this->range = $range;
}
public function isComposite()
return isset($this->hash) && isset($this->range);
public function columns()
$columns = [];
if ($this->hash) {
$columns[] = $this->hash;
if ($this->range) {
$columns[] = $this->range;
return $columns;