| @@ 919-934 (lines=16) @@ | ||
| 916 | * @param mixed $value field value |
|
| 917 | * @return $this|\Jalle19\StatusManager\Database\Channel |
|
| 918 | */ |
|
| 919 | public function setByPosition($pos, $value) |
|
| 920 | { |
|
| 921 | switch ($pos) { |
|
| 922 | case 0: |
|
| 923 | $this->setId($value); |
|
| 924 | break; |
|
| 925 | case 1: |
|
| 926 | $this->setInstanceName($value); |
|
| 927 | break; |
|
| 928 | case 2: |
|
| 929 | $this->setName($value); |
|
| 930 | break; |
|
| 931 | } // switch() |
|
| 932 | ||
| 933 | return $this; |
|
| 934 | } |
|
| 935 | ||
| 936 | /** |
|
| 937 | * Populates the object using an array. |
|
| @@ 970-985 (lines=16) @@ | ||
| 967 | * @param mixed $value field value |
|
| 968 | * @return $this|\Jalle19\StatusManager\Database\User |
|
| 969 | */ |
|
| 970 | public function setByPosition($pos, $value) |
|
| 971 | { |
|
| 972 | switch ($pos) { |
|
| 973 | case 0: |
|
| 974 | $this->setId($value); |
|
| 975 | break; |
|
| 976 | case 1: |
|
| 977 | $this->setInstanceName($value); |
|
| 978 | break; |
|
| 979 | case 2: |
|
| 980 | $this->setName($value); |
|
| 981 | break; |
|
| 982 | } // switch() |
|
| 983 | ||
| 984 | return $this; |
|
| 985 | } |
|
| 986 | ||
| 987 | /** |
|
| 988 | * Populates the object using an array. |
|