What's wrong with:
PHP Code:
// $foo->setFile( file_name, max_size, text_body, [file lock, default false]. [special case, default false] );
$foo->setFile('blah', 42, 'stuff');
$foo->setFile('blah', 42, 'stuff', true);
$foo->setFile('blah', 42, 'stuff', true, false);
The only time you would want to overload this function would be for type hinting, ex:
PHP Code:
$myFile = new SpecialFile();
// $foo->setFile(SpecialFile $file)
$foo->setFile($myFile);
And in this case you can rename the function (so your code it's simpler to read)
Bookmarks