1 | <?php |
||
10 | class PostTemplate implements ConditionInterface { |
||
11 | /** |
||
12 | * Post template to check against |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $post_template = ''; |
||
17 | |||
18 | /** |
||
19 | * Post types to check against |
||
20 | * |
||
21 | * @var string[] |
||
22 | */ |
||
23 | protected $post_types = []; |
||
24 | |||
25 | /** |
||
26 | * Constructor |
||
27 | * |
||
28 | * @param string $post_template |
||
29 | * @param string|string[] $post_types |
||
30 | */ |
||
31 | public function __construct( $post_template, $post_types = [] ) { |
||
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | public function satisfied( Request $request ) { |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | public function getArguments( Request $request ) { |
||
51 | } |
||
52 |