Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing phpdocs

  • Loading branch information...
commit a9477ba56186421acf2202fa76c4e8fe4249c3b6 1 parent 97d184d
@mgiagnoni authored
View
3  Action/Action.php
@@ -76,6 +76,9 @@ class Action implements ActionInterface
*/
protected $roles;
+ /**
+ * @param string $name action name
+ */
public function __construct($name)
{
$this->name = $name;
View
3  Action/ActionCollection.php
@@ -21,6 +21,9 @@ class ActionCollection implements ActionCollectionInterface
*/
protected $actions = array();
+ /**
+ * @param array $options
+ */
public function __construct($options = array())
{
$this->populateFromOptions($options);
View
3  Configuration/AdminConfiguration.php
@@ -20,6 +20,9 @@ class AdminConfiguration implements AdminConfigurationInterface
{
protected $options;
+ /**
+ * @param array $options
+ */
public function __construct($options)
{
$this->options = $options;
View
4 Filter/Filter.php
@@ -72,6 +72,10 @@ class Filter implements FilterInterface
*/
protected $fields;
+ /**
+ * @param \Lyra\AdminBundle\FormFactory\AdminFormFactory $factory
+ * @param \Lyra\AdminBundle\Model\ModelManagerInterface $modelManager
+ */
public function __construct(FormFactory $factory, ModelManagerInterface $modelManager)
{
$this->factory = $factory;
View
3  Form/Form.php
@@ -92,6 +92,9 @@ class Form implements FormInterface
protected $data;
+ /**
+ * @param \Lyra\AdminBundle\FormFactory\AdminFormFactory $factory
+ */
public function __construct(FormFactory $factory)
{
$this->factory = $factory;
View
10 Form/Type/AdminFilterFormType.php
@@ -17,10 +17,20 @@
class AdminFilterFormType extends AbstractType
{
+ /**
+ * @var string
+ */
protected $name;
+ /**
+ * @var array
+ */
protected $fields;
+ /**
+ * @param string $name
+ * @param array $fields
+ */
public function __construct($name, $fields)
{
$this->name = $name;
View
10 Form/Type/AdminFormType.php
@@ -20,10 +20,20 @@
*/
class AdminFormType extends AbstractType
{
+ /**
+ * @var string
+ */
protected $name;
+ /**
+ * @var array
+ */
protected $fields;
+ /**
+ * @param string $name
+ * @param array $fields
+ */
public function __construct($name, $fields)
{
$this->name = $name;
View
6 FormFactory/AdminFormFactory.php
@@ -18,8 +18,14 @@
*/
class AdminFormFactory
{
+ /**
+ * @var \Symfony\Component\Form\FormFactory $formFactory
+ */
protected $formFactory;
+ /**
+ * @param \Symfony\Component\Form\FormFactory $formFactory
+ */
public function __construct(FormFactory $formFactory)
{
$this->formFactory = $formFactory;
View
3  Grid/Column.php
@@ -68,6 +68,9 @@ class Column implements ColumnInterface
*/
protected $methods;
+ /**
+ * @param string $name column name
+ */
public function __construct($name)
{
$this->name = $name;
View
3  Grid/ColumnCollection.php
@@ -21,6 +21,9 @@ class ColumnCollection implements ColumnCollectionInterface
*/
protected $columns;
+ /**
+ * @param array $options
+ */
public function __construct($options = array())
{
$this->populateFromOptions($options);
View
5 Grid/Grid.php
@@ -101,6 +101,11 @@ class Grid implements GridInterface
*/
protected $queryBuilder;
+ /**
+ * @param \Lyra\AdminBundle\Pager\PagerInterface $pager
+ * @param \Lyra\AdminBundle\QueryBuilder\QueryBuilderInterface $queryBuilder
+ * @param \Lyra\AdminBundle\Security\SecurityManagerInterface $securityManager
+ */
public function __construct(PagerInterface $pager, QueryBuilderInterface $queryBuilder, SecurityManagerInterface $securityManager)
{
$this->pager = $pager;
View
12 QueryBuilder/QueryBuilder.php
@@ -23,12 +23,24 @@ class QueryBuilder implements QueryBuilderInterface
*/
protected $baseQueryBuilder;
+ /**
+ * @var array
+ */
protected $sort;
+ /**
+ * @var array
+ */
protected $criteria;
+ /**
+ * @var array
+ */
protected $fields;
+ /**
+ * @param \Lyra\AdminBundle\Model\ModelManagerInterface $manager
+ */
public function __construct(ModelManagerInterface $manager)
{
$this->setBaseQueryBuilder($manager->getBaseListQueryBuilder());
View
4 Security/SecurityManager.php
@@ -29,6 +29,10 @@ class SecurityManager implements SecurityManagerInterface
*/
protected $actions;
+ /**
+ * @param \Symfony\Component\Security\Core\SecurityContextInterface $securityContext
+ * @param array $actions
+ */
public function __construct(SecurityContextInterface $securityContext, $actions)
{
$this->securityContext = $securityContext;
Please sign in to comment.
Something went wrong with that request. Please try again.