| 1 | <?php |
||
| 12 | class PostType implements ConditionInterface { |
||
| 13 | /** |
||
| 14 | * Post type to check against |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $post_type = ''; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor |
||
| 22 | * |
||
| 23 | * @param string $post_type |
||
| 24 | */ |
||
| 25 | public function __construct( $post_type ) { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritDoc} |
||
| 31 | */ |
||
| 32 | public function isSatisfied( Request $request ) { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritDoc} |
||
| 38 | */ |
||
| 39 | public function getArguments( Request $request ) { |
||
| 42 | } |
||
| 43 |