public final function containsSize( $widthOrSize, int $height = null ) : bool
   {

      $width = $widthOrSize;

      if ( $width instanceof Size )
      {
         $height = $width->height;
         $width  = $width->width;
      }
      else if ( \is_integer( $widthOrSize ) )
      {
         $width = $widthOrSize;
      }
      else if ( TypeTool::IsInteger( $widthOrSize ) )
      {
         $width = \intval( $widthOrSize );
      }
      else
      {
         $width = 0;
      }

      if ( ! \is_int( $height ) )
      {
         $height = \intval( $height );
      }

      return
         $this->size->width  >= $width
         &&
         $this->size->height >= $height;

   }
public final function containsSize( $widthOrSize, int $height = null ) : bool
   {

      $width = $widthOrSize;

      if ( $width instanceof Size )
      {
         $height = $width->height;
         $width  = $width->width;
      }
      else if ( \is_integer( $widthOrSize ) )
      {
         $width = $widthOrSize;
      }
      else if ( TypeTool::IsInteger( $widthOrSize ) )
      {
         $width = \intval( $widthOrSize );
      }
      else
      {
         $width = 0;
      }

      if ( ! \is_int( $height ) )
      {
         $height = \intval( $height );
      }

      return
         $this->size->width  >= $width
         &&
         $this->size->height >= $height;

   }
public final function containsSize ( $ widthOrSize , int $ height = null ) : bool { $ width = $ widthOrSize ; if ( $ width instanceof Size ) { $ height = $ width -> height ; $ width = $ width -> width ; } else if ( \ is_integer ( $ widthOrSize ) ) { $ width = $ widthOrSize ; } else if ( TypeTool :: IsInteger ( $ widthOrSize ) ) { $ width = \ intval ( $ widthOrSize ) ; } else { $ width = 0 ; } if ( ! \ is_int ( $ height ) ) { $ height = \ intval ( $ height ) ; } return $ this -> size -> width >= $ width && $ this -> size -> height >= $ height ; }
Returns, if the current rectangle contains the defined Size.

@param  \Beluga\Drawing\Size|integer $widthOrSize
@param  integer                  $height
@return boolean
Returns if the current rectangle contains the defined Size .