Skip to content

Commit b640d37

Browse files
author
Florian Semm
committed
add PHPDoc
1 parent 6fcf83a commit b640d37

File tree

8 files changed

+20
-26
lines changed

8 files changed

+20
-26
lines changed

DependencyInjection/Compiler/AddCreateDocumentCommandPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
class AddCreateDocumentCommandPass implements CompilerPassInterface
99
{
10-
/* (non-PHPdoc)
11-
* @see Symfony\Component\DependencyInjection\Compiler.CompilerPassInterface::process()
10+
/**
11+
* @param ContainerBuilder $container
1212
*/
1313
public function process(ContainerBuilder $container)
1414
{

DependencyInjection/Configuration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ class Configuration implements ConfigurationInterface
99
{
1010

1111
/**
12-
* (non-PHPdoc)
13-
* @see \Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder()
12+
* @return TreeBuilder
1413
*/
1514
public function getConfigTreeBuilder()
1615
{

DependencyInjection/FSSolrExtension.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@
1010
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1111
use Symfony\Component\DependencyInjection\Loader;
1212

13-
/**
14-
* This is the class that loads and manages your bundle configuration
15-
*
16-
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
17-
*/
1813
class FSSolrExtension extends Extension
1914
{
2015

2116
/**
22-
* (non-PHPdoc)
23-
* @see \Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()
17+
* @param array $configs
18+
* @param ContainerBuilder $container
2419
*/
2520
public function load(array $configs, ContainerBuilder $container)
2621
{

Event/Listener/DeleteLogListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ class DeleteLogListener extends AbstractLogListener
77
{
88

99
/**
10-
* (non-PHPdoc)
11-
* @see \FS\SolrBundle\Event\EventListenerInterface::notify()
10+
* @param Event $event
1211
*/
1312
public function onSolrDelete(Event $event)
1413
{

Event/Listener/InsertLogListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ class InsertLogListener extends AbstractLogListener
77
{
88

99
/**
10-
* (non-PHPdoc)
11-
* @see \FS\SolrBundle\Event\EventListenerInterface::notify()
10+
* @param Event $event
1211
*/
1312
public function onSolrInsert(Event $event)
1413
{

Event/Listener/UpdateLogListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ class UpdateLogListener extends AbstractLogListener
77
{
88

99
/**
10-
* (non-PHPdoc)
11-
* @see \FS\SolrBundle\Event\EventListenerInterface::notify()
10+
* @param Event $event
1211
*/
1312
public function onSolrUpdate(Event $event)
1413
{

Repository/Repository.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public function __construct(Solr $solr, $entity)
2929
$this->entity = $entity;
3030
}
3131

32-
/* (non-PHPdoc)
33-
* @see FS\SolrBundle\Repository.RepositoryInterface::find()
32+
/**
33+
* @param int $id
34+
* @return object|null
3435
*/
3536
public function find($id)
3637
{
@@ -54,8 +55,8 @@ public function find($id)
5455
return array_pop($found);
5556
}
5657

57-
/* (non-PHPdoc)
58-
* @see FS\SolrBundle\Repository.RepositoryInterface::findAll()
58+
/**
59+
* @return array of found documents
5960
*/
6061
public function findAll()
6162
{
@@ -78,8 +79,9 @@ public function findAll()
7879
return $this->solr->query($query);
7980
}
8081

81-
/* (non-PHPdoc)
82-
* @see FS\SolrBundle\Repository.RepositoryInterface::findBy()
82+
/**
83+
* @param array $args
84+
* @return array of found documents
8385
*/
8486
public function findBy(array $args)
8587
{
@@ -92,8 +94,9 @@ public function findBy(array $args)
9294
return $this->solr->query($query);
9395
}
9496

95-
/* (non-PHPdoc)
96-
* @see FS\SolrBundle\Repository.RepositoryInterface::findOneBy()
97+
/**
98+
* @param array $args
99+
* @return array
97100
*/
98101
public function findOneBy(array $args)
99102
{

Solr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private function addToIndex(MetaInformation $metaInformation, $entity)
218218

219219
/**
220220
* @param AbstractQuery $query
221-
* @return array found entities
221+
* @return array of found documents
222222
*/
223223
public function query(AbstractQuery $query)
224224
{

0 commit comments

Comments
 (0)