src/Database/AbstractModel.php
protected static function outputValidate($data): AbstractModel
    {
        if (!self::$that) {
            self::$that = new AbstractModel;
        }

        self::$that->setData(result::adapter($data));
        self::$that->setRawData($data);

        return self::$that;
    }
protected static function outputValidate($data): AbstractModel
    {
        if (!self::$that) {
            self::$that = new AbstractModel;
        }

        self::$that->setData(result::adapter($data));
        self::$that->setRawData($data);

        return self::$that;
    }
protected static function outputValidate ( $ data ) : AbstractModel { if ( ! self :: $ that ) { self :: $ that = new AbstractModel ; } self :: $ that -> setData ( result :: adapter ( $ data ) ) ; self :: $ that -> setRawData ( $ data ) ; return self :: $ that ; }
Initialize one new instance of AbstractModel
and configure it with the results of query

@author Edson B S Monteiro <bruno.monteirodg@gmail.com>
@since 1.0
@param mixed $data
@return \App\System\AbstractModel
Initialize one new instance of AbstractModel and configure it with the results of query