/** * Alias for constructor (for chain use). * * @param array|ArrayAccess * @param \Vero\Validate\Container|null * @param array|null List of fields to map from $container * @return self * @see __construct() */ public static function create($input = array(), ContainerInterface $container = null, $fields = null) { $validator = new self($input); if ($container) { $validator->mapContainer($container, $fields); } return $validator; }