Pimcore\Model\Object\ClassDefinition\Data\Date::getDataForQueryResource PHP Method

getDataForQueryResource() public method

See also: Object\ClassDefinition\Data::getDataForQueryResource
public getDataForQueryResource ( Zend_Date | DateTime $data, null | AbstractObject $object = null, mixed $params = [] ) : integer
$data Zend_Date | DateTime
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return integer
    public function getDataForQueryResource($data, $object = null, $params = [])
    {
        if ($data) {
            return $data->getTimestamp();
        }
    }