1: <?php
2:
3: /**
4: * Copyright 2015, Eduardo Trujillo
5: *
6: * For the full copyright and license information, please view the LICENSE
7: * file that was distributed with this source code.
8: *
9: * This file is part of the Nucleus package
10: */
11:
12: namespace Chromabits\Nucleus\Meditation\Constraints;
13:
14: use Chromabits\Nucleus\Data\Interfaces\FoldableInterface;
15:
16: /**
17: * Class FoldableConstraint
18: *
19: * @author Eduardo Trujillo <ed@chromabits.com>
20: * @package Chromabits\Nucleus\Meditation\Constraints
21: */
22: class FoldableConstraint extends EitherConstraint
23: {
24: /**
25: * Construct an instance of a TraversableConstraint.
26: */
27: public function __construct()
28: {
29: parent::__construct(
30: new ClassTypeConstraint(FoldableInterface::class),
31: new ListConstraint()
32: );
33: }
34: }
35: