Skip to content

Commit

Permalink
Package declaration and docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Firesphere committed Oct 19, 2023
1 parent 2c41813 commit f7db801
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Helpers/Statics.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
<?php
/**
* class Statics|Firesphere\ElasticSearch\Helpers\Statics Static helper
*
* @package Firesphere\Elastic\Search
* @author Simon `Firesphere` Erkelens; Marco `Sheepy` Hermo
* @copyright Copyright (c) 2018 - now() Firesphere & Sheepy
*/

namespace Firesphere\ElasticSearch\Helpers;

use Firesphere\SearchBackend\Helpers\Statics as CoreStatics;
use SilverStripe\Core\Config\Configurable;

/**
* Class Statics
*
* An extension to the core statics, to get the Elastic specific
* typemap from the core
*/
class Statics extends CoreStatics
{
use Configurable;
Expand Down
13 changes: 13 additions & 0 deletions src/Tasks/ElasticConfigureTask.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* class ElasticConfigureTask|Firesphere\ElasticSearch\Tasks\ElasticConfigureTask Configure custom mappings in Elastic
*
* @package Firesphere\Elastic\Search
* @author Simon `Firesphere` Erkelens; Marco `Sheepy` Hermo
* @copyright Copyright (c) 2018 - now() Firesphere & Sheepy
*/

namespace Firesphere\ElasticSearch\Tasks;

Expand All @@ -19,6 +26,12 @@
use SilverStripe\Dev\BuildTask;
use SilverStripe\ORM\DB;

/**
* Class ElasticConfigureTask
*
* Used to create field-specific mappings in Elastic. Not explicitly needed for a basic search
* functionality, but does add filter/sort/aggregate features without the performance drawback
*/
class ElasticConfigureTask extends BuildTask
{
use LoggerTrait;
Expand Down

0 comments on commit f7db801

Please sign in to comment.