-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reusable trait rather than adding a method * corrections from PR review - update readme instruction - restore phpdoc ide hint - trailing newline for phpcs * Add HasSpatial trait #75 - typo & cs-fixer fix * Update README.md Co-authored-by: Matan Yadaev <[email protected]>
- Loading branch information
1 parent
9360923
commit b00b225
Showing
3 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace MatanYadaev\EloquentSpatial\Traits; | ||
|
||
use MatanYadaev\EloquentSpatial\SpatialBuilder; | ||
|
||
trait HasSpatial | ||
{ | ||
public function newEloquentBuilder($query): SpatialBuilder | ||
{ | ||
return new SpatialBuilder($query); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters