private function validatePublishing($publishing)
    {
        if ($this->isRoot() && $publishing !== null) {
            throw new \LogicException("Root page can't be scheduled published.");
        }

        if (!($publishing instanceof \DateTime)) {
            $publishing = $this->convertTimestampToDateTime($publishing);
        }

        return $publishing;
    }