Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
bbc0c568
Commit
bbc0c568
authored
Feb 17, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added exception about private properties
parent
9a67bc05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
core-code-style.md
docs/internals/core-code-style.md
+6
-1
No files found.
docs/internals/core-code-style.md
View file @
bbc0c568
...
...
@@ -77,7 +77,12 @@ class Foo
### 4.2. Properties
-
When declaring public class members specify
`public`
keyword explicitly.
-
Variables should be declared at the top of the class before any method declarations.
-
Public and protected variables should be declared at the top of the class before any method declarations.
Private variables should also be declared at the top of the class but may be added right before the methods
that are dealing with them in cases where they are only related to a small subset of the class methods.
-
The order of property declaration in a class should be ascending from public over protected to private.
-
For better readability there should be no blank lines between property declarations and two blank lines
between property and method declaration sections.
-
Private variables should be named like
`$_varName`
.
-
Public class members and standalone variables should be named using
`$camelCase`
with first letter lowercase.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment