| 1 | <?php |
||
| 12 | class PostTemplate implements ConditionInterface { |
||
| 13 | /** |
||
| 14 | * Post template to check against |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $post_template = ''; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Post types to check against |
||
| 22 | * |
||
| 23 | * @var string[] |
||
| 24 | */ |
||
| 25 | protected $post_types = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor |
||
| 29 | * |
||
| 30 | * @param string $post_template |
||
| 31 | * @param string|string[] $post_types |
||
| 32 | */ |
||
| 33 | public function __construct( $post_template, $post_types = [] ) { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritDoc} |
||
| 40 | */ |
||
| 41 | public function isSatisfied( Request $request ) { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritDoc} |
||
| 49 | */ |
||
| 50 | public function getArguments( Request $request ) { |
||
| 53 | } |
||
| 54 |