<?php

namespace MssPhp\Schema\Response;

use JMS\Serializer\Annotation\Type;

class CheckInOut {
    /**
     * @Type("DateTime<'hh:mm'>")
     */
    public $from;

    /**
     * @Type("DateTime<'hh:mm'>")
     */
    public $to;
}

<?php

namespace MssPhp\Schema\Response;

use JMS\Serializer\Annotation\Type;

class CheckInOut {
    /**
     * @Type("string")
     */
    public $from;

    /**
     * @Type("string")
     */
    public $to;
}

Use string instead of datetime as PHP does not support time only
Use string instead of datetime as PHP does not support time only
