Exemple #1
0
 /**
  * Define if extract values will use camel case or name with underscore
  * @param bool|array $underscoreSeparatedKeys
  */
 public function __construct($underscoreSeparatedKeys = true)
 {
     parent::__construct();
     $this->setUnderscoreSeparatedKeys($underscoreSeparatedKeys);
     $this->callableMethodFilter = new Filter\OptionalParametersFilter();
     $this->filterComposite->addFilter('is', new Filter\IsFilter());
     $this->filterComposite->addFilter('has', new Filter\HasFilter());
     $this->filterComposite->addFilter('get', new Filter\GetFilter());
     $this->filterComposite->addFilter('parameter', new Filter\OptionalParametersFilter(), Filter\FilterComposite::CONDITION_AND);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setNamingStrategy(new MapNamingStrategy($this->map));
     $this->init();
 }
 /**
  * Creates a social profiles collection hydrator.
  *
  * @param array $profileClassMap
  */
 public function __construct(array $profileClassMap = array())
 {
     parent::__construct();
     $this->profileClassMap = array_merge($this->profileClassMap, $profileClassMap);
 }
 /**
  * Constructor
  *
  * @param ObjectManager $objectManager The ObjectManager to use
  * @param bool          $byValue       If set to true, hydrator will always use entity's public API
  */
 public function __construct(ObjectManager $objectManager, $byValue = true)
 {
     parent::__construct();
     $this->objectManager = $objectManager;
     $this->byValue = (bool) $byValue;
 }
 public function __construct()
 {
     parent::__construct();
     $this->init();
 }