public static function compositeIDs($models)
    {
        if (!is_array($models) && $models instanceof static) {
            return $models->getID();
        }
        $ids = [];
        foreach ($models as $model) {
            if ($model instanceof static) {
                $ids[] = $model->getID();
            }
        }
        return $ids;
    }
public static function compositeIDs($models)
    {
        if (!is_array($models) && $models instanceof static) {
            return $models->getID();
        }
        $ids = [];
        foreach ($models as $model) {
            if ($model instanceof static) {
                $ids[] = $model->getID();
            }
        }
        return $ids;
    }
public static function compositeIDs ( $ models ) { if ( ! is_array ( $ models ) && $ models instanceof static ) { return $ models -> getID ( ) ; } $ ids = [ ] ; foreach ( $ models as $ model ) { if ( $ model instanceof static ) { $ ids [ ] = $ model -> getID ( ) ; } } return $ ids ; }
Composite IDs from models.
@param $models
@return array|int|string
Composite IDs from models .