Exemplo n.º 1
0
 public function StartsWith($value) : \bool
 {
     $value = (string) $value;
     $valueLength = \strlen($value);
     if ($valueLength <= \strlen($this->_value) && $value === \substr($this->_value, 0, $valueLength)) {
         return XBoolean::True();
     }
     return XBoolean::False();
 }
Exemplo n.º 2
0
 public static function True() : XBoolean
 {
     return XBoolean::True();
 }