for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kelemen\ApiNette\Validator;
class Validation
{
/** @var string */
private $type;
private $key;
private $rules;
/** @var null|string */
private $resultKey;
/**
* @param string $type
* @param string $key
* @param string $rules
* @param null|string $resultKey
*/
public function __construct($type, $key, $rules, $resultKey = null)
$this->type = $type;
$this->key = $key;
$this->rules = $rules;
$this->resultKey = $resultKey !== null ? $resultKey : $key;
}
* @return string
public function getType()
return $this->type;
public function getKey()
return $this->key;
public function getRules()
return $this->rules;
* @return null|string
public function getResultKey()
return $this->resultKey;