-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcomment_example.txt
68 lines (60 loc) · 2.17 KB
/
comment_example.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
This is the class example file for users creating or commenting. The file is to be uses to store
file comment examples so that we can keep the code unifom.
This is the comment width guide. No comment or description should be greater than this length so
that is can be read easily on smaller displays. Variable and return comments can be greater but it
is recommended that you keep it short.
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~COMMENT~WIDTH~GUIDE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
This is a page comment example. All pages should start with this comment regardless of purpose.
/**
* @version 0.90
* @package Atsumi.Framework
* @copyright Copyright (C) 2008, James A. Forrester-Fellowes. All rights reserved.
* @license GNU/GPL, see license.txt
* The Atsumi Framework is open-source software. This version may have been modified pursuant to
* the GNU General Public License, and as distributed it includes or is derivative of works
* licensed under the GNU General Public License or other free or open source software licenses.
* See copyright.txt for copyright notices and details.
*/
This is a class comment and class structure example. All
/**
* Description of the class
* @package Atsumi.Framework
* @subpackage Cache
* @since 0.90
*/
class namespace_ClassName {
/* CONSTANTS */
/* PROPERTIES */
/* CONSTRUCTOR & DESTRUCTOR */
/* GET METHODS */
/* SET METHODS */
/* MAGIC METHODS */
/* METHODS */
/* DEPRECATED METHODS */
/*
* +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~COMMENT~WIDTH~GUIDE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
* NOTE: Below are all static functions which will be removed when php 5.3.0+ becomes the
* common and the PHP magic function __callStatic works correctly
*/
}
This is an exception example
/**
* Description of the class
* @package Atsumi.Framework
* @subpackage Cache
* @since 0.90
*/
class namespace_ExceptionName extends Exception {}
This is an interface example. Note that variable comments have been removed
/**
* Description of the class
* @package Atsumi.Framework
* @subpackage Cache
* @since 0.90
*/
interface namespace_InterfaceName {
/* CONSTRUCTOR & DESTRUCTOR */
/* GET METHODS */
/* SET METHODS */
/* METHODS */
}