diff --git a/README.md b/README.md index 251387c..dec925a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ As the name says, it is made to be basic and direct. ## Get Started +

+ +

+ Add library in to you project with Composer ``` composer require basicis/core @@ -41,11 +45,11 @@ APP_TIMEZONE='America/Recife' # For MySQL databases #DB_DRIVER="pdo_mysql" -DB_HOST="127.0.0.1" -DB_PORT=3306 -DB_NAME="dbname" -DB_USER="user" -DB_PASS="userpass" +#DB_HOST="127.0.0.1" +#DB_PORT=3306 +#DB_NAME="dbname" +#DB_USER="user" +#DB_PASS="userpass" #DATABASE_URL="${DB_DRIVER}://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}" # For Sqlite database diff --git a/bin/doc-readme b/bin/doc-readme index 07b9be1..2f55a73 100644 --- a/bin/doc-readme +++ b/bin/doc-readme @@ -1,12 +1,11 @@ #!/usr/local/bin/php protecteds; } + /** + * Function setId + * Set entity ID (unique on system identification) + * @param int $id + * @return Model + */ + public function setId(int $id = null) : Model + { + if ($id > 0) { + $this->id = $id; + } + return $this; + } + /** * Function getId * Return entity ID (unique on system identification)