public function guidOrId($param, $like = false)
    {
        if (is_string($param) && (preg_match(Number::GUID_REGEX, $param) || strlen($param) == 16)) {
            return $this->guid($param, $like);
        }
        return $this->id($param, $like);
    }
public function guidOrId($param, $like = false)
    {
        if (is_string($param) && (preg_match(Number::GUID_REGEX, $param) || strlen($param) == 16)) {
            return $this->guid($param, $like);
        }
        return $this->id($param, $like);
    }
public function guidOrId ( $ param , $ like = false ) { if ( is_string ( $ param ) && ( preg_match ( Number :: GUID_REGEX , $ param ) || strlen ( $ param ) == 16 ) ) { return $ this -> guid ( $ param , $ like ) ; } return $ this -> id ( $ param , $ like ) ; }
Specify GUID or ID attribute.
Scalar parameter is acceptable only.
Please do not pass an array to the first parameter.
@param string|integer $param
@param bool|string $like false, 'like', 'or like', 'not like', 'or not like'.
@return $this
Specify GUID or ID attribute . Scalar parameter is acceptable only . Please do not pass an array to the first parameter .