Added deprecated flag in phpDoc. updated @param in setSize