for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CarbonFramework\Routing\Conditions;
use CarbonFramework\Request;
/**
* Check if a certain query var is set
*/
class HasQueryVar extends QueryVar {
* {@inheritDoc}
public function satisfied( Request $request ) {
return get_query_var( $this->query_var, null ) !== null;
}