/** * Checks if object is instance of Login class. * @param mixed $object Object to check * @return true if is Login class object, false otherwise. */ public static function isInstance($object) { if (parent::isInstance($object) && $object->f == 'login' && property_exists($object, 'data') && property_exists($object->data, 'warehouseId') && property_exists($object->data, 'pw')) { return true; } return false; }
/** * Checks if object is instance of Logout class. * @param mixed $object Object to check * @return true if is Logout class object, false otherwise. */ public static function isInstance($object) { if (parent::isInstance($object) && $object->f == 'logout' && property_exists($object, 'sessionId')) { return true; } return false; }
/** * Checks if object is instance of DataRequest class. * @param mixed $object Object to check * @return true if is DataRequest class object, false otherwise. */ public static function isInstance($object) { if (parent::isInstance($object)) { return true; } return false; }