Adds the class description extracted from the contents:
<?php
namespace simialbi\yii2\schemaorg\models;
/**
- * Model for Action
+ * An action performed by a direct agent and indirect participants upon a direct
+ * object. Optionally happens at a location with the help of an inanimate
+ * instrument. The execution of the action may produce a result. Specific action
+ * sub-type documentation specifies the exact expectation of each argument/role.
*
* @package simialbi\yii2\schemaorg\models
* @see http://schema.org/Action
*/
class Action extends Thing {
Wordwrap attributes description to 80 chars:
/**
- * @var boolean|string Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * Indicates whether pets are allowed to enter the accommodation or lodging
+ * business. More detailed information can be put in a text value.
+ *
+ * @var boolean|string
*/
public $petsAllowed;
Prevent the Model.php file from being deleted when using the clean argument
-foreach ($files as $file) {
+foreach ($files as $file) if (basename($file) !== 'Model.php') {
$this->stdout("File '$file' deleted\n", Console::FG_YELLOW);
@unlink($file);
}
Fixes the path to the files to remove (as the path from the glob entry is already absolute)
Hey @simialbi,
This PR includes:
Model.php
file from being deleted when using theclean
argumentFixes the path to the files to remove (as the path from the glob entry is already absolute)
$this->stdout("File '$modelDir".DIRECTORY_SEPARATOR."$file' deleted\n", Console::FG_YELLOW);
@unlink($modelDir . DIRECTORY_SEPARATOR . $file); +$this->stdout("File '$file' deleted\n", Console::FG_YELLOW); +@unlink($file);
Regenerates all definitions (and adds a ton of missing attributes, check the diff for
models/Offer.php
)