/** * @param Model|ModelCollection $caller * @return array|null */ public static function getIDs($caller) { return $caller instanceof Model ? array($caller->getID()) : $caller->getIDs(); }