Zend_Date_DateObject がタイムスタンプ プロパティを返す前にその型をチェックする理由 (および int または string にキャストする理由) を誰かが説明できますか?
protected function getTimestamp()
{
if ($this->_unixTimestamp === intval($this->_unixTimestamp)) {
return (int) $this->_unixTimestamp;
} else {
return (string) $this->_unixTimestamp;
}
}
これはかなり奇妙に思えますが、これには何らかの論理があるに違いありません??