예제 #1
0
 static function spec()
 {
     $spec = parent::spec();
     unset($spec['props']);
     unset($spec['rules']);
     return array_merge($spec, ['class' => ['required' => true, 'kind' => 'string'], 'parser' => ['type' => 'dep', 'kind' => \Nope\Parser::class], 'registry' => ['type' => 'dep', 'kind' => \Fulfil\Registry::class, 'required' => true]]);
 }
예제 #2
0
 static function spec()
 {
     return array_merge(parent::spec(), ['props' => ['default' => []], 'rules' => ['default' => []], 'ignore' => ['default' => []], 'mapper' => ['type' => 'dep'], 'filterUnknownProps' => ['kind' => 'bool']]);
 }
예제 #3
0
 static function spec()
 {
     return array_merge(parent::spec(), ['schemas' => ['required' => true, 'kind' => 'array', 'allowSingle' => true, 'itemKind' => \Fulfil\SchemaAggregate::class], 'props' => ['kind' => 'array'], 'rules' => ['kind' => 'array', 'default' => []], 'dateFormats' => ['kind' => 'array', 'allowSingle' => true, 'itemKind' => 'string', 'default' => []], 'stringTrim' => ['kind' => 'bool', 'default' => false], 'stringEmptyMode' => ['kind' => 'string', 'default' => String_::EMPTY_SET_NULL], 'tz' => true, 'registry' => ['type' => 'dep', 'required' => true]]);
 }
예제 #4
0
 static function spec()
 {
     return array_merge(parent::spec(), ['allowInt' => ['kind' => 'bool'], 'allowDouble' => ['kind' => 'bool'], 'min' => true, 'max' => true, 'divisibleBy' => true, 'precision' => true, 'scale' => true, 'allowString' => ['kind' => 'bool'], 'emitString' => ['kind' => 'bool']]);
 }
예제 #5
0
파일: Bool_.php 프로젝트: shabbyrobe/fulfil
 static function spec()
 {
     return array_merge(parent::spec(), ['allowLoose' => ['kind' => 'bool', 'default' => false], 'trueValues' => ['kind' => 'array', 'itemKind' => 'scalar'], 'falseValues' => ['kind' => 'array', 'itemKind' => 'scalar']]);
 }
예제 #6
0
 static function spec()
 {
     return array_merge(parent::spec(), ['min' => ['kind' => 'numeric'], 'max' => ['kind' => 'numeric'], 'divisibleBy' => ['kind' => 'numeric'], 'allowString' => ['kind' => 'bool', 'default' => false], 'allowInt' => ['kind' => 'bool', 'default' => true]]);
 }
예제 #7
0
파일: Int_.php 프로젝트: shabbyrobe/fulfil
 static function spec()
 {
     return array_merge(parent::spec(), ['allowString' => ['initial' => false], 'min' => ['kind' => 'int'], 'max' => ['kind' => 'int'], 'divisibleBy' => ['kind' => 'int']]);
 }
예제 #8
0
 static function spec()
 {
     return array_merge(parent::spec(), ['class' => ['kind' => 'string', 'required' => true]]);
 }
예제 #9
0
 static function spec()
 {
     return array_merge(parent::spec(), ['trim' => ['kind' => 'bool'], 'nl2spc' => ['kind' => 'bool'], 'casing' => ['kind' => 'string']]);
 }
예제 #10
0
 static function spec()
 {
     return array_merge(parent::spec(), ['checks' => ['required' => true]]);
 }
예제 #11
0
 static function spec()
 {
     return array_merge(parent::spec(), ['emptyMode' => ['setter' => 'setEmptyMode'], 'lengthMin' => ['kind' => 'int'], 'lengthMax' => ['kind' => 'int'], 'length' => ['kind' => 'int'], 'bytesMax' => ['kind' => 'int'], 'pattern' => true]);
 }
예제 #12
0
 static function spec()
 {
     return array_merge(parent::spec(), ['formats' => ['required' => true, 'kind' => 'array'], 'tz' => true]);
 }
예제 #13
0
 static function spec()
 {
     return array_merge(parent::spec(), ['length' => ['kind' => 'int'], 'lengthMin' => ['kind' => 'int'], 'lengthMax' => ['kind' => 'int'], 'unique' => ['kind' => 'bool']]);
 }
예제 #14
0
파일: Date.php 프로젝트: shabbyrobe/fulfil
 static function spec()
 {
     return array_merge(parent::spec(), ['min' => ['kind' => ['string', \DateTime::class]], 'max' => ['kind' => ['string', \DateTime::class]]]);
 }