Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 379 Bytes

rules.md

File metadata and controls

27 lines (23 loc) · 379 Bytes

Define the type of the property

Class definition

A property could be configured to be a scalar or an object

public static function rules()
{
    return [
        'date' => [
            'object' => 'DateTime',
        ]
    ];
}
public static function rules()
{
    return [
        'fields' => [
            'scalar' => 'array'
        ]
    ];
}