Permalink
Browse files

Code annotation cleanup

  • Loading branch information...
1 parent e12ba5f commit 46152fdca685223a3aaf6add1ac15cdaebba0600 @MrHash MrHash committed Apr 29, 2013
@@ -29,10 +29,14 @@
*/
class Searchable extends Annotation
{
- /** @var string $index */
+ /**
+ * @var string $index
+ */
public $index;
- /** @var string $type */
+ /**
+ * @var string $type
+ */
public $type;
}
@@ -42,16 +46,24 @@ class Searchable extends Annotation
*/
final class ElasticSearchable extends Searchable
{
- /** @var int $numberOfShards */
+ /**
+ * @var int $numberOfShards
+ */
public $numberOfShards;
- /** @var int $numnberOfReplicas */
+ /**
+ * @var int $numnberOfReplicas
+ */
public $numberOfReplicas;
- /** @var string $op_type */
+ /**
+ * @var string $op_type
+ */
public $opType;
- /** @var float $parent */
+ /**
+ * @var float $parent
+ */
public $parent;
/**
@@ -60,10 +72,14 @@ class Searchable extends Annotation
*/
public $timeToLive;
- /** @var float */
+ /**
+ * @var float
+ */
public $boost;
- /** @var boolean */
+ /**
+ * @var boolean
+ */
public $source;
}
@@ -73,13 +89,19 @@ class Searchable extends Annotation
*/
class Field extends Annotation
{
- /** @var float */
+ /**
+ * @var float
+ */
public $boost;
- /** @var string */
+ /**
+ * @var string
+ */
public $type;
- /** @var string */
+ /**
+ * @var string
+ */
public $name;
}
@@ -98,15 +120,23 @@ class Field extends Annotation
*/
final class ElasticField extends Field
{
- /** @var boolean */
+ /**
+ * @var boolean
+ */
public $includeInAll;
- /** @var string */
+ /**
+ * @var string
+ */
public $index;
- /** @var array */
+ /**
+ * @var array
+ */
public $fields;
- /** @var array */
+ /**
+ * @var array
+ */
public $properties;
}
@@ -11,31 +11,49 @@ class Query
const HYDRATION_PARAMETER = 'ids';
- /** @var SearchManager */
+ /**
+ * @var SearchManager
+ */
protected $_sm;
- /** @var object */
+ /**
+ * @var object
+ */
protected $query;
- /** @var DoctrineQuery */
+ /**
+ * @var DoctrineQuery
+ */
protected $doctrineQuery;
- /** @var string */
+ /**
+ * @var string
+ */
protected $hydrationParameter = self::HYDRATION_PARAMETER;
- /** @var string */
+ /**
+ * @var string
+ */
protected $entityClass;
- /** @var integer **/
+ /**
+ * @var integer
+ */
protected $hydrationMode = DoctrineQuery::HYDRATE_OBJECT;
- /** @var boolean */
+ /**
+ * @var boolean
+ */
protected $useResultCache;
- /** @var integer */
+ /**
+ * @var integer
+ */
protected $cacheLifetime;
- /** @var integer **/
+ /**
+ * @var integer
+ */
protected $count;
public function __construct(SearchManager $sm)
@@ -39,22 +39,34 @@
*/
class SearchManager
{
- /** @var SearchClientInterface */
+ /**
+ * @var SearchClientInterface
+ */
private $searchClient;
- /** @var Configuration $configuration */
+ /**
+ * @var Configuration $configuration
+ */
private $configuration;
- /** @var ClassMetadataFactory */
+ /**
+ * @var ClassMetadataFactory
+ */
private $metadataFactory;
- /** @var SerializerInterface */
+ /**
+ * @var SerializerInterface
+ */
private $serializer;
- /** @var array */
+ /**
+ * @var array
+ */
private $scheduledForPersist = array();
- /** @var array */
+ /**
+ * @var array
+ */
private $scheduledForDelete = array();
/** @var EntityManager */

0 comments on commit 46152fd

Please sign in to comment.