Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00015 final class HttpMethod extends Enumeration
00016 {
00017 const OPTIONS = 1;
00018 const GET = 2;
00019 const HEAD = 3;
00020 const POST = 4;
00021 const PUT = 5;
00022 const DELETE = 6;
00023 const TRACE = 7;
00024 const CONNECT = 8;
00025 const PROPFIND = 9;
00026 const PROPPATCH = 10;
00027 const MKCOL = 11;
00028 const COPY = 12;
00029 const MOVE = 13;
00030 const LOCK = 14;
00031 const UNLOCK = 15;
00032
00033 protected $names = array(
00034 self::OPTIONS => 'OPTIONS',
00035 self::GET => 'GET',
00036 self::HEAD => 'HEAD',
00037 self::POST => 'POST',
00038 self::PUT => 'PUT',
00039 self::DELETE => 'DELETE',
00040 self::TRACE => 'TRACE',
00041 self::CONNECT => 'CONNECT',
00042 self::PROPFIND => 'PROPFIND',
00043 self::PROPPATCH => 'PROPPATCH',
00044 self::MKCOL => 'MKCOL',
00045 self::COPY => 'COPY',
00046 self::MOVE => 'MOVE',
00047 self::LOCK => 'LOCK',
00048 self::UNLOCK => 'UNLOCK',
00049 );
00050
00051 public static function get()
00052 {
00053 return new self(self::GET);
00054 }
00055
00056 public static function post()
00057 {
00058 return new self(self::POST);
00059 }
00060 }
00061 ?>