Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the results by trait in model #3

Open
karam-mustafa opened this issue Mar 11, 2022 · 0 comments
Open

Get the results by trait in model #3

karam-mustafa opened this issue Mar 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@karam-mustafa
Copy link
Member

karam-mustafa commented Mar 11, 2022

I think we can handle the logic for a custom model by adding trait in the model.

example:
instead of using the package in the follwing way

 $instance = (new \SOS\RelationalMetrics\Classes\RelationalMetrics("Store")); 
 $metrics = $instance->getBasicMetrics();

we can get the same result as this example:

$metrics = Store::getBasicMetrics();

and the getBasicMetrics function should be able to call statically or from a new instance of the model

@karam-mustafa karam-mustafa added the enhancement New feature or request label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant