Highway to PSR2
[openemr.git] / interface / super / rules / library / RuleCriteriaBuilder.php
blobbd130a84d5f80fdacd84881315e0bda51ce0c2f5
1 <?php
2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
9 /**
10 * Description of RuleCriteriaBuilder
12 * @author aron
14 abstract class RuleCriteriaBuilder
18 /**
19 * @return RuleCriteriaType
21 abstract function resolveRuleCriteriaType($method, $methodDetail, $value);
23 /**
24 * @param RuleCriteriaType $ruleCriteriaType
25 * @return RuleCriteria
27 abstract function build($ruleCriteriaType, $value, $methodDetail);
29 abstract function newInstance($criteriaType);