XOOPS  2.6.0
AbstractContract.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
13 
29 abstract class AbstractContract
30 {
33 
41  public function setPriority($priority)
42  {
43  $this->priority = (int) $priority;
44  }
45 
51  public function getPriority()
52  {
53  return $this->priority;
54  }
55 
62  public function getMode()
63  {
64  $class = get_called_class();
65  return $class::MODE;
66  }
67 
74  abstract public function getName();
75 
81  abstract public function getDescription();
82 }