src/WellCommerce/Component/DataSet/Conditions/Condition/In.php line 23

Open in your IDE?
  1. <?php
  2. declare(strict_types=0);
  3. /*
  4.  * WellCommerce Foundation
  5.  *
  6.  * This file is part of the WellCommerce package.
  7.  *
  8.  * (c) Adam Piotrowski <adam@wellcommerce.org>
  9.  *
  10.  * For the full copyright and license information,
  11.  * please view the LICENSE file that was distributed with this source code.
  12.  */
  13. namespace WellCommerce\Component\DataSet\Conditions\Condition;
  14. use WellCommerce\Component\DataSet\Conditions\AbstractCondition;
  15. /**
  16.  * Class In
  17.  *
  18.  * @author  Adam Piotrowski <adam@wellcommerce.org>
  19.  */
  20. final class In extends AbstractCondition
  21. {
  22.     protected $operator 'in';
  23.     public function getValue()
  24.     {
  25.         return !is_array($this->value) ? (array)$this->value $this->value;
  26.     }
  27. }