I've voted the second option, there some java designs that don't have meaning in php because of overhead.
For my work when i need some task to be acomplished i first look in java api so i can have the work done quickly. And by now i have several classes ported from java.
There is JPHP an php library ported form java, but i don't like it at all because of some reasons, one of them is this
You know what i mean, for me this doens't make sense.
$arg = StringBuffer::toStringBuffer($arg);