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'
]
];
}