File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 44
55namespace think \model \type ;
66
7+ use think \model \contract \Modelable ;
8+
79class Date extends DateTime
810{
911 protected $ data ;
1012
11- public static function from (mixed $ value )
13+ public static function from (mixed $ value, Modelable $ model )
1214 {
1315 $ static = new static ();
1416 $ static ->data ($ value , 'Y-m-d ' );
Original file line number Diff line number Diff line change 44
55namespace think \model \type ;
66
7+ use think \model \contract \Modelable ;
78use think \model \contract \Typeable ;
89
910class DateTime implements Typeable
1011{
1112 protected $ data ;
1213
13- public static function from (mixed $ value )
14+ public static function from (mixed $ value, Modelable $ model )
1415 {
1516 $ static = new static ();
1617 $ static ->data ($ value , 'Y-m-d H:i:s ' );
You can’t perform that action at this time.
0 commit comments