diff --git a/framework/console/Controller.php b/framework/console/Controller.php index 579b5977830..908e50fcdb4 100644 --- a/framework/console/Controller.php +++ b/framework/console/Controller.php @@ -28,8 +28,8 @@ * where `` is a route to a controller action and the params will be populated as properties of a command. * See [[options()]] for details. * - * @property-read string $help - * @property-read string $helpSummary + * @property-read string $help The help information for this controller. + * @property-read string $helpSummary The one-line short summary describing this controller. * @property-read array $passedOptionValues The properties corresponding to the passed options. * @property-read array $passedOptions The names of the options passed during execution. * diff --git a/framework/web/Controller.php b/framework/web/Controller.php index 3e4c52e05ae..2177a7f0bfc 100644 --- a/framework/web/Controller.php +++ b/framework/web/Controller.php @@ -17,6 +17,10 @@ * * For more details and usage information on Controller, see the [guide article on controllers](guide:structure-controllers). * + * @property Request $request The request object. + * @property Response $response The response object. + * @property View $view The view object that can be used to render views or view files. + * * @author Qiang Xue * @since 2.0 */ diff --git a/framework/web/CookieCollection.php b/framework/web/CookieCollection.php index 597fc2f5fd7..3791b545326 100644 --- a/framework/web/CookieCollection.php +++ b/framework/web/CookieCollection.php @@ -18,6 +18,7 @@ * For more details and usage information on CookieCollection, see the [guide article on handling cookies](guide:runtime-sessions-cookies). * * @property-read int $count The number of cookies in the collection. + * @property-read ArrayIterator $iterator An iterator for traversing the cookies in the collection. * * @author Qiang Xue * @since 2.0 diff --git a/framework/web/HeaderCollection.php b/framework/web/HeaderCollection.php index 17eaadefd6d..64cae459b10 100644 --- a/framework/web/HeaderCollection.php +++ b/framework/web/HeaderCollection.php @@ -12,6 +12,9 @@ /** * HeaderCollection is used by [[Response]] to maintain the currently registered HTTP headers. * + * @property-read int $count The number of headers in the collection. + * @property-read \ArrayIterator $iterator An iterator for traversing the headers in the collection. + * * @author Qiang Xue * @since 2.0 */ diff --git a/framework/web/Session.php b/framework/web/Session.php index bcb7eaff1b2..e9c3ebd5c48 100644 --- a/framework/web/Session.php +++ b/framework/web/Session.php @@ -57,6 +57,7 @@ * @property bool $hasSessionId Whether the current request has sent the session ID. * @property string $id The current session ID. * @property-read bool $isActive Whether the session has started. + * @property-read SessionIterator $iterator An iterator for traversing the session variables. * @property string $name The current session name. * @property string $savePath The current session save path, defaults to '/tmp'. * @property int $timeout The number of seconds after which data will be seen as 'garbage' and cleaned up. The