It does have structures like a "spoken" language. Nouns are variables. Verbs are functions.
Sentences are statements that end with a ; instead of . They can range from
to interesting structures like
$myVar = isset($anotherVar) ? $anotherVar : "Hello, world";
which reads "is $anotherVar set to a true value (anything other than empty, false, or 0)? then $myVar is set to the value of $anotherVar; if it isn’t (or doesn’t exist at all), then $myVar is set to "Hello, world".
Paragraphs are blocks of statements enclosed in { } curly braces; usually these are blocks of code inside a function, a loop, or an "if..." structure.
Objects are like short stories; they encapsulate all of the variables and functions that will be used to deal with a "topic", such as logging in/logging out a user. Or, as in the case of even MODx Evo, the document parser object, which contains all the variables (pagetitle, content, etc) related to the page being generated, and all of the functions that process the MODx tags in the original resource and template.