. * */ namespace OCA\Contacts; /** * Subclass this class or implement IPIMObject interface for PIM objects. */ abstract class AbstractPIMObject implements IPIMObject { /** * If this object is part of a collection return a reference * to the parent object, otherwise return null. * @return IPIMObject|null */ public function getParent() { } /** * @param integer $permission * @return boolean */ public function hasPermission($permission) { return $this->getPermissions() & $permission; } }