* @gitea Joomla Component Builder * @github Joomla Component Builder * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace VDM\Joomla\Utilities; /** * Some object tricks */ abstract class ObjectHelper { /** * Check if have an object with a length * * @input object The object to check * * @returns bool true on success */ public static function check($object) { if (is_object($object)) { return count((array) $object) > 0; } return false; } }